# Install dependencies
npm install
# Start development server
npm run devThe frontend will be available at: http://localhost:3000
# Build Docker image
make build
# Start production container
make prod
# Stop production
make prod-downCreate .env.local for local development:
NEXT_PUBLIC_API_URL=http://localhost:8080For production, set environment variables in docker-compose.yml or your deployment platform.
- Run backend:
cd ../amar-pathagar-backend && make dev - Run frontend:
npm run dev - Open browser: http://localhost:3000
# Build Next.js app
npm run build
# Start production server
npm startOr use Docker:
make build
make prodAPI connection failed:
- Ensure backend is running on port 8080
- Check
NEXT_PUBLIC_API_URLin.env.local
Build errors:
- Clear Next.js cache:
rm -rf .next - Reinstall dependencies:
rm -rf node_modules && npm install