- Python v3.10+
- PostgreSQL
In side the django-templates
apply these following commands
# Create virtual env
python -m venv venv
# Activate the venv
# On window
.\venv\Scripts\activate
# On MacOs
source ./venv/bin/activatee
# Deactivate the venv
deactivate
- Install dependencies
pip install -r requirements.txt
- Update database information in
boilerplate/settings/local.py
or copy.env.example
into.env
- Init database
docker compose up -d db
- Migrate database
python manage.py makemigrations
python manage.py migrate
- Seed the data
python manage.py loaddata boilerplate/database/seed.json
python manage.py runserver 0.0.0.0:8000
docker compose up -d init_dev
🐞 Fix bugs docker: If the services cannot run synchronously you can try run the them in the following order
docker compose up -d db
docker compose up -d init_dev
Open browser and access localhost:8000/docs
to view swagger documentation