This project consists of a backend server and a frontend application. Follow the instructions below to set up and run both components.
-
Navigate to the
serverdirectory: cd server -
Create a virtual environment (optional but recommended):
python -m venv venv -
Activate the virtual environment:
- On Windows:
venv\Scripts\activate - On macOS and Linux:
source venv/bin/activate
-
Install the required Python packages:
pip install -r requirements.txt -
Run the backend server on port 8080: python manage.py runserver 8080
Make sure to specify port 8080 as it is required to connect to the frontend.
-
Navigate to the
clientdirectory: cd client -
Install all frontend dependencies using npm:
npm install
If you encounter any issues, make sure you have Node.js installed, or run npm i -f to forcefully install dependencies.
- Run the frontend application:
npm run dev
The frontend will run on port 5173 by default.
-
Once both the backend and frontend are running, you can access the application in your web browser at the following URLs:
-
Frontend: http://localhost:5173
-
Backend: http://localhost:8080
Ensure that the frontend is set up to communicate with the backend on port 8080, as mentioned in the project's requirements.
Happy coding!