git clone https://github.com/Amanc77/learning-management-system.git
cd learning-management-system
cd server
npm install
cd ../client
npm install
PORT=8000
MONGO_URI=your_mongo_uri
SECRET_KEY=your_secret
CLIENT_URL=http://localhost:5173
FRONTEND_URL=http://localhost:5173
CLOUD_NAME=your_cloudinary
API_KEY=your_key
API_SECRET=your_secret
RAZORPAY_ID_KEY=your_key
RAZORPAY_SECRET_KEY=your_secret
GOOGLE_CLIENT_ID=your_id
GOOGLE_CLIENT_SECRET=your_secret
GOOGLE_CALLBACK_URL=http://localhost:8000/auth/google/callback
cd server
npm run dev
cd client
npm run dev
Your local setup will run on:
Backend → http://localhost:8000
Frontend → http://localhost:5173
NODE_ENV=production
PORT=8000
MONGO_URI=your_mongo_uri
SECRET_KEY=your_secret
FRONTEND_URL=http://localhost:8000
CLIENT_URL=http://localhost:8000
CLOUD_NAME=your_cloudinary
API_KEY=your_key
API_SECRET=your_secret
RAZORPAY_ID_KEY=your_key
RAZORPAY_SECRET_KEY=your_secret
GOOGLE_CLIENT_ID=your_id
GOOGLE_CLIENT_SECRET=your_secret
GOOGLE_CALLBACK_URL=http://localhost:8000/auth/google/callback
Multi‑stage build for frontend + backend.
Runs everything in one container.
docker compose build --no-cache
docker compose up
App runs at: http://localhost:8000
docker compose down