This guide will walk you through the steps to run the Django backend API for VisualVision. Ensure that you have Python and Pipenv installed on your system before proceeding.
- Python 3.10
- Pipenv
-
Clone the repository:
-
Navigate to the project directory:
cd visual_vision_back -
Install project dependencies using Pipenv:
pipenv install -r requirements.txt
-
Activate the virtual environment:
pipenv shell
-
Apply migrations:
python manage.py migrate
-
Start the Django development server:
python manage.py runserver
-
Visit
http://localhost:8000in your web browser. You should see the default Django landing page or your project homepage if configured.
-
To install additional Python packages, you can do so using Pipenv. Make sure to activate the virtual environment with
pipenv shellbefore installing packages. -
Make sure to keep your virtual environment activated (
pipenv shell) whenever you work on the project to ensure that you're using the correct dependencies. -
Don't forget to deactivate the virtual environment once you're done working on the project:
exit -
For production deployments, refer to the Django documentation on deploying Django applications in production.
- If you encounter any issues during the installation or setup process, feel free to open an issue on the project repository or reach out to the project maintainers for assistance.