Skip to content

Repository for quickly jumpstarting web projects that uses both Django & FastAPI frameworks for backend.

Notifications You must be signed in to change notification settings

Simatwa/django-fastapi-boilerplate

Repository files navigation

django-fastapi-boilerplate

Python Version Backend Admin - Django Backend API - FastAPI

Repository for quickly jumpstarting web projects that uses both Django & FastAPI frameworks for backend.

Page Screenshot
Landing Landing page demo
Admin Admin page demo
OpenAPI Docs OpenAPI docs page demo

Features

  • Common django apps ie.
  • FastAPI endpoints
    • Business - Provides app information
    • Account - User account creation & management
    • Core - User level actions - templated
  • Admin dashboard using Django-Jazzmin

Backend Directory Structure

.
├── app.py
├── backend
│   ├── api
│   │   ├── cli.py
│   │   ├── common.py
│   │   ├── dependencies
│   │   │   ├── __init__.py
│   │   │   └── security
│   │   │       ├── exceptions.py
│   │   │       ├── __init__.py
│   │   │       ├── turnstile.py
│   │   │       └── _types.py
│   │   ├── __init__.py
│   │   ├── __main__.py
│   │   ├── middleware.py
│   │   ├── README.md
│   │   ├── tests
│   │   │   ├── __init__.py
│   │   │   ├── utils.py
│   │   │   └── v1
│   │   │       ├── __init__.py
│   │   │       ├── test_accounts.py
│   │   │       ├── test_business.py
│   │   │       └── test_core.py
│   │   ├── v1
│   │   │   ├── account
│   │   │   │   ├── __init__.py
│   │   │   │   ├── models.py
│   │   │   │   ├── routes.py
│   │   │   │   └── utils.py
│   │   │   ├── business
│   │   │   │   ├── __init__.py
│   │   │   │   ├── models.py
│   │   │   │   └── routes.py
│   │   │   ├── core
│   │   │   │   ├── __init__.py
│   │   │   │   ├── models.py
│   │   │   │   └── routes.py
│   │   │   ├── __init__.py
│   │   │   ├── models.py
│   │   │   ├── routes.py
│   │   │   └── utils.py
│   │   └── VERSION
│   ├── db.sqlite3
│   ├── external
│   │   ├── admin.py
│   │   ├── apps.py
│   │   ├── _enums.py
│   │   ├── __init__.py
│   │   ├── models.py
│   │   ├── tests.py
│   │   └── views.py
│   ├── files
│   │   └── media
│   │       ├── default
│   │       │   ├── logo.png
│   │       │   └── user.png
│   │       └── gallery
│   │           └── screen_.jpg
│   ├── finance
│   │   ├── admin.py
│   │   ├── apps.py
│   │   ├── _enums.py
│   │   ├── forms.py
│   │   ├── __init__.py
│   │   ├── models.py
│   │   ├── templatetags
│   │   │   └── my_filters.py
│   │   ├── tests.py
│   │   └── views.py
│   ├── Makefile
│   ├── management
│   │   ├── admin.py
│   │   ├── apps.py
│   │   ├── _enums.py
│   │   ├── forms.py
│   │   ├── __init__.py
│   │   ├── models.py
│   │   ├── tests.py
│   │   └── views.py
│   ├── manage.py
│   ├── project
│   │   ├── asgi.py
│   │   ├── __init__.py
│   │   ├── settings
│   │   │   ├── base.py
│   │   │   ├── config.py
│   │   │   ├── dev.py
│   │   │   ├── __init__.py
│   │   │   └── prod.py
│   │   ├── urls.py
│   │   ├── utils
│   │   │   ├── admin.py
│   │   │   ├── common.py
│   │   │   ├── __init__.py
│   │   │   └── models.py
│   │   └── wsgi.py
│   ├── requirements.txt
│   ├── templates
│   │   ├── api
│   │   │   └── v1
│   │   │       └── email
│   │   │           ├── message_received_confirmation.html
│   │   │           └── password_reset_token.html
│   │   ├── success.html
│   │   └── user_creation.html
│   ├── users
│   │   ├── admin.py
│   │   ├── apps.py
│   │   ├── _enums.py
│   │   ├── forms.py
│   │   ├── __init__.py
│   │   ├── models.py
│   │   ├── tests.py
│   │   ├── urls.py
│   │   └── views.py
│   └── wsgi.py
├── frontend
│   ├── css
│   │   └── main.css
│   ├── img
│   │   └── logo.png
│   ├── index.html
│   └── js
│       └── main.js
├── pyproject.toml
├── README.md
└── requirements.txt

30 directories, 98 files

Important

The frontend directory declared in .env must have index.html file.

About

Repository for quickly jumpstarting web projects that uses both Django & FastAPI frameworks for backend.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages