Skip to content

talha700/DRFtemplate-docker

Repository files navigation

djangoRFtemplate-docker

Template for creating a Django REST project contains various features & tools

Features

  • 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)

Usage

  1. Install cookiecutter
    pip install cookiecutter

  2. Create project
    cookiecutter https://github.com/talha700/DRFtemplate-docker.git

    cookiecutter will prompt for the settings

  3. Create env.dev file by refering to env.example.dev

  4. Build & Start

    docker-compose up

    to run in detached mode

    docker-compose up -d

Access swagger UI

api/{{project_slug}}/schema/swagger-ui/

About

Django Rest framework template with docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published