lkpanganiban / my-django-template

a template for my django projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Django Template

A reference repo for my Django Projects

Services to be Configured

  • Django + Django Rest Framework
  • Redis
  • Celery
  • Elasticsearch
  • Nginx
  • PostgreSQL
  • Minio
  • Gunicorn

Optional services

  • Kibana
  • Logstash
  • Filebeat
  • Prometheus

Sample Modules

  1. Upload
  2. Permissions
  3. Login with JWT

Initial Setup

  1. Create a .env.dev and .env-db.dev files. Use the .env and .env-db as reference
  2. Run chmod +x to entrypoint.sh and entrypoint.prod.sh
  3. Run docker-compose up to start the app.

Setup for Operations

  1. Build a Dockerfile for dev and production
  2. Create a docker-compose.yml for dev and production
  3. Configure docker-elk
  4. Configure Prometheus:

TODO:

  • Integrate file upload with Minio
  • Integrate file CRUD ops with Minio
  • Add type hints / annotations to customized code

About

a template for my django projects


Languages

Language:SCSS 43.1%Language:CSS 41.2%Language:HTML 8.1%Language:Python 5.7%Language:JavaScript 1.5%Language:Dockerfile 0.2%Language:Shell 0.1%Language:Go 0.0%