- Open Project in Visual studio code
- Create new python environment
foo@bar:~/source/repos/NutriTrack$ python3 -m venv <venv_name>
For example:
foo@bar:~/source/repos/NutriTrack$ python3 -m venv dev
- Activate python environment
foo@bar:~/source/repos/NutriTrack$ source <venv_name>/bin/activate
For example:
foo@bar:~/source/repos/NutriTrack$ source dev/bin/activate
- Install all the dependencies Install all dependencies defined in requirements.txt file by running:
foo@bar:~/source/repos/NutriTrack$ pip install -r requirements.txt
- Copy env file Install all dependencies defined in requirements.txt file by running:
foo@bar:~/source/repos/NutriTrack$ cp .env.example .env
- Run database with docker Make sure you have opened Docker Desktop:
foo@bar:~/source/repos/NutriTrack$ docker compose up -d
- Run Django App
foo@bar:~/source/repos/NutriTrack$ ./manage.py runserver