A web-based question management system for educational purposes built with React, Node.js, Express, and MongoDB.
main- Production branch (deploy from here)develop- Development branch with debug featuresdb-changes- Database schema changes
# Switch to develop branch
git checkout develop
# Start development environment
docker-compose -f docker-compose.dev.yml up -d
# View logs
docker-compose -f docker-compose.dev.yml logs -fAccess: http://localhost:3000
See DEPLOYMENT.md for detailed production deployment guide.
# On main branch
git checkout main
# Configure environment
cp .env.production.example .env
# Edit .env with your production values
# Deploy
docker-compose up -d --build
# Or use deployment script
.\deploy-production.ps1 # Windows
./deploy-production.sh # Linux/Mac.
├── apps/
│ ├── backend/ # Node.js/Express API
│ ├── frontend/ # React application
│ ├── nginx/ # Nginx reverse proxy
│ └── entry_point/ # MongoDB initialization
├── volumes/
│ ├── backend/ # MongoDB data
│ └── backups/ # Database backups
├── docker-compose.yml # Production compose (main branch)
├── docker-compose.dev.yml # Development compose (develop branch)
├── docker-compose.prod.yml # Production compose template
└── DEPLOYMENT.md # Deployment guide
- User registration and authentication
- Email confirmation
- Question creation and management
- Weekly question assignments
- Question validation system
- Point tracking system
- Module and subject management
- Admin dashboard
Create .env file with required variables:
# Frontend URL
FRONTEND_URL=http://localhost:3000 # or your production domain
# Email Configuration (if already working on server, leave as is)
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_SECURE=false
SMTP_USER=your-email@gmail.com
SMTP_PASS=your-app-password
SMTP_FROM=noreply@yourdomain.sk
# Security Keys
SALT_KEY=your-salt-key-here
TOKEN_KEY=your-token-key-here
# MongoDB
MONGO_USER=mongoUser
MONGO_PASSWORD=your-password| Feature | Development | Production |
|---|---|---|
| Docker Compose | docker-compose.dev.yml |
docker-compose.yml |
| Dockerfiles | Dockerfile.dev |
Dockerfile |
| Hot Reload | ✅ Yes | ❌ No |
| Debug Controls | ✅ Visible | |
| MongoDB Port | Exposed (29035) | Not exposed |
| Code Volumes | Mounted | Built into image |
| Optimization | Low | High |
# Start
docker-compose -f docker-compose.dev.yml up -d
# Stop
docker-compose -f docker-compose.dev.yml down
# View logs
docker-compose -f docker-compose.dev.yml logs -f
# Rebuild
docker-compose -f docker-compose.dev.yml up -d --build# Start
docker-compose up -d
# Stop
docker-compose down
# View logs
docker-compose logs -f
# Update deployment
git pull origin main
docker-compose up -d --build- DEPLOYMENT.md - Production deployment guide
- todo.txt - Development todos
- bugy.txt - Known bugs and issues
[Your License Here]
[Your Contributors Here]