Template for creating a Django REST project contains various features & tools
- docker compose files for development/production evironment
- Postgresql DB
- PGadmin
- Celery/Redis
- Celery beats
- JWT auth (djangorestframework-simplejwt) along views for create/delete user & change password
- OpenAPI docs using drf-spectacular (swagger UI)
- VScode debugger config
- VScode settings for black (linting/formating)
-
Install cookiecutter
pip install cookiecutter
-
Create project
cookiecutter https://github.com/talha700/DRFtemplate-docker.git
cookiecutter will prompt for the settings
-
Create
env.dev
file by refering toenv.example.dev
-
Build & Start
docker-compose up
to run in detached mode
docker-compose up -d
api/{{project_slug}}/schema/swagger-ui/