Main =>
Dev ==>
InDev =>
Template project for all Django Rest services developed
- Python 3.8 link
- Virtualenv
- Postgresql
- Download the application link.
- Install Postgresql and set up root (postgres). linux link windows link
- Create base database.
*Note**: Make sure to download/clone this repository and navigate to the folder in your terminal. Now follow the instructions below
- Create the virtual environment.
virtualenv /path/to/venv --python=/path/to/python3
You can find out the path to your python3
interpreter with the command which python3
.
-
Set up
.env
file by duplicating the.example.env
file(and editing if required). -
Activate the environment and install dependencies.
source /path/to/venv/bin/activate pip install -r requirements.txt
./path/to/venv/bin/activate pip install -r requirements.txt
-
Launch the app
python manage.py runserver localhost:8000
- Run all tests
pytest
- launch app with docker compose
docker-compose up --build --remove-orphans