13 Commits

Author SHA1 Message Date
Wiktor
d7e772519a Merge pull request #6 from overspend1/claude/setup-python-docker-01ANMAVZeNM96mEBWUbadrbn
Set up Python Docker environment with dependencies
2025-11-21 13:16:41 +01:00
Claude
0ef84c77d3 fix: Resolve Docker build failures for frontend and backend
Backend fixes:
- Add linux-libc-dev and libc6-dev to support psutil compilation on ARM/aarch64
- Update psutil from 6.1.0 to 6.1.1 for better wheel support

Frontend fixes:
- Create missing lib/utils.ts with cn utility function
- Resolves "Module not found: Can't resolve '@/lib/utils'" error
- Uses clsx and tailwind-merge for className merging

These changes ensure successful Docker builds for both services.
2025-11-21 12:15:24 +00:00
Wiktor
ae388e62ee Merge pull request #5 from overspend1/claude/update-python-dependencies-014tg34YRKZSXfGkU8DmaQpT
Update Python dependencies and Docker base image
2025-11-21 13:07:23 +01:00
Claude
82b56cf209 fix: Resolve Docker build failures for frontend and backend
Backend fixes:
- Updated psutil from 5.9.8 to 6.1.0 for better ARM64 support and pre-built wheels

Frontend fixes:
- Created missing lib/api/client.ts with axios API client
- Created missing lib/hooks/useStats.ts with system statistics hooks
- Created missing lib/hooks/useBots.ts with bot management hooks
- Fixed .gitignore to not ignore frontend/lib/ directory

These changes resolve the build errors:
- Backend: psutil compilation failure on aarch64
- Frontend: Missing module @/lib/hooks/useStats
2025-11-21 12:05:24 +00:00
Wiktor
af872a2935 Merge pull request #4 from overspend1/claude/update-python-dependencies-01Tb7V7mEiTXHTqiM81Zgh54
Update Python dependencies and Docker base image
2025-11-21 12:59:46 +01:00
Claude
22fce19050 fix: Resolve Docker build failures for frontend and backend
Backend fixes:
- Add g++ and build-essential for complete C++ compilation support
- Upgrade pip, setuptools, and wheel before installing dependencies
- Ensures psutil and other packages with native extensions build correctly

Frontend fixes:
- Add build arguments for NEXT_PUBLIC_API_URL and NEXT_PUBLIC_WS_URL
- Pass environment variables during Docker build stage
- Set default values to prevent undefined destination in Next.js rewrites
- Configure docker-compose to pass build arguments to frontend service

These changes resolve:
- psutil build failure: "ERROR: Failed building wheel for psutil"
- Next.js build error: "Invalid rewrite found" with undefined destination
2025-11-21 11:58:56 +00:00
Wiktor
2c4601b9d8 Merge pull request #3 from overspend1/claude/fix-npm-install-01PgzBPg7kQLEAFNGdtDe5fY
Fix npm install dependency resolution issues
2025-11-21 12:54:55 +01:00
Claude
8f83bacdb9 fix: Resolve Docker build failures for frontend and backend
Backend fix:
- Add python3-dev to build dependencies for psutil compilation
- psutil requires Python development headers to build C extensions

Frontend fix:
- Explicitly copy package-lock.json to ensure it's available for npm ci
- Add verification step to confirm package-lock.json exists before npm ci
- Prevents "npm ci" usage errors due to missing lock file
2025-11-21 11:53:51 +00:00
Wiktor
fd904ab547 Merge pull request #2 from overspend1/claude/fix-npm-install-error-01JHJmxx3tUexbhgFEJnB3e6
Fix npm installation strategy error
2025-11-21 12:45:38 +01:00
Claude
b8f44e0634 fix: Add missing package-lock.json to fix npm ci failure in Docker build
The frontend Dockerfile uses 'npm ci' which requires package-lock.json to exist.
This file was missing, causing the Docker build to fail with exit code 1.

Generated package-lock.json by running 'npm install' in the frontend directory.
This ensures reproducible builds and faster Docker image creation.

Resolves the EUSAGE error: "npm ci" requires package-lock.json
2025-11-21 11:17:47 +00:00
Wiktor
a6fad23d09 Merge pull request #1 from overspend1/claude/bot-management-dashboard-019eUkzJ11Nebi3NoaADESdy
Build bot management dashboard system
2025-11-21 11:34:53 +01:00
Claude
297e94593f feat: Complete production-ready bot management dashboard system
Implement a comprehensive web-based dashboard for managing Telegram and Discord bots
with real-time monitoring, process control, and beautiful UI.

Backend (FastAPI):
- Complete REST API with OpenAPI documentation
- WebSocket support for real-time log streaming and statistics
- SQLAlchemy models for bots, logs, and users
- JWT-based authentication system
- Process management with subprocess and psutil
- Auto-restart functionality with configurable backoff
- System and bot resource monitoring (CPU, RAM, network)
- Comprehensive error handling and logging

Frontend (Next.js 14 + TypeScript):
- Modern React application with App Router
- shadcn/ui components with Tailwind CSS
- TanStack Query for data fetching and caching
- Real-time WebSocket integration
- Responsive design for mobile, tablet, and desktop
- Beautiful dark theme with glassmorphism effects
- Bot cards with status badges and controls
- System statistics dashboard

Example Bots:
- Telegram userbot using Telethon
- Telegram bot using python-telegram-bot
- Discord bot using discord.py
- Full command examples and error handling

Infrastructure:
- Docker and Docker Compose configurations
- Multi-stage builds for optimal image sizes
- Nginx reverse proxy with WebSocket support
- Production and development compose files
- Rate limiting and security headers

Documentation:
- Comprehensive README with setup instructions
- API documentation examples
- Configuration guides
- Troubleshooting section
- Makefile for common commands

Features:
- Start/stop/restart bots with one click
- Real-time log streaming via WebSocket
- Live system and bot statistics
- Auto-restart on crashes
- Bot configuration management
- Process monitoring and resource tracking
- Search and filter bots
- Responsive UI with loading states
- Toast notifications for all actions

Security:
- JWT token-based authentication
- Password hashing with bcrypt
- CORS configuration
- Environment variable management
- Input validation and sanitization
- Rate limiting in nginx
- Security headers configured
2025-11-21 10:31:11 +00:00
Wiktor
3bee6c27f7 Initial commit 2025-11-21 10:54:42 +01:00