A real-time restaurant waitlist management application with Django backend and React frontend.
- Django Server: Main application backend running on port 8000
- Socket.IO Server: Real-time notification server running on port 3000
- React Application: User interface running on port 3001
The Socket.IO server is essential for real-time updates. Several tools are available to manage it:
# Check server status
node socket_server_manager.js status
# Start the server
node socket_server_manager.js start
# Stop the server
node socket_server_manager.js stop
# Restart the server
node socket_server_manager.js restartTo quickly check if the Socket.IO server is running properly:
node check_socketio.js-
Set up Python virtual environment:
cd backend python -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate pip install -r requirements.txt
-
Run Django migrations:
python manage.py migrate
-
Start Django server:
python manage.py runserver
-
Start Socket.IO server:
node socket_server_manager.js start
-
Install dependencies:
cd frontend npm install -
Start development server:
npm start
If you experience issues with real-time updates:
-
Check Socket.IO server status:
node socket_server_manager.js status
-
Ensure the Django backend is configured correctly to communicate with the Socket.IO server.
-
Verify the frontend is connecting properly to the Socket.IO server using the browser's developer console.