npm run devThis starts both frontend and backend in development mode with hot reload.
Start backend only:
cd backend && npm run devStart specific frontend:
cd frontend && npm run dev:server # Server admin (port 3000)
cd frontend && npm run dev:applicant # Applicant portal (port 3001)
cd frontend && npm run dev:counter # Counter dashboard (port 3002)- Path:
/frontend/server/ - Features: System management, queue monitoring, settings
- Shutdown: Available in Settings page
- Path:
/frontend/applicant/ - Features: Chat interface, form filling, status checking
- Path:
/frontend/counter/ - Features: Queue processing, applicant management
- Backend API:
http://localhost:4000- Serves all API endpoints and data templates - Server Frontend:
http://localhost:3000- Admin dashboard (auto-opens on startup) - Applicant Frontend:
http://localhost:3001- Customer portal - Counter Frontend:
http://localhost:3002- Staff dashboard
To access the application from mobile devices or other computers on your network:
-
Find your computer's IP address:
ipconfig | Select-String "IPv4"
Look for your active network adapter (e.g.,
192.168.1.5) -
Update applicant frontend environment:
- Create/edit
frontend/applicant/.env.local - Set:
NEXT_PUBLIC_API_URL=http://YOUR_IP:4000 - Replace
YOUR_IPwith your computer's IP address
- Create/edit
-
Restart services:
npm run server:stop npm run server:start
-
Access from mobile device:
- Ensure mobile is on the same WiFi network
- Navigate to:
http://YOUR_IP:3001
The npm run server:start command will:
- Start the backend server (port 4000)
- Start the server frontend (port 3000)
- Open the browser to the server admin page
- Provide coordinated shutdown via API
- Use the shutdown button in the server frontend settings
- Or run
npm run server:stop - Or use Ctrl+C in the terminal
# Root level
npm run install-all # Install all dependencies
npm run dev # Start everything in dev mode
npm run start # Start everything in production mode
npm run server:start # Smart server startup with browser opening
npm run server:stop # Clean shutdown of all services
# Frontend workspace
npm run dev:server # Server admin frontend
npm run dev:applicant # Applicant portal
npm run dev:counter # Counter dashboard
# Backend
npm run dev # Development with nodemon
npm start # Production start