Skip to content

drmacsika/fastapi-django-combo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI and Django Combo

This projects aims to combine FastAPI and Django to build a Production ready application capable of utilizing all of the features of both django and FastAPI. To demonstrate, I built a sample blog app, It can be adapted into any app.

Table of Contents:

Screenshots

Django Admin Page 1

Django Admin Page 2

Fastapi Blog endpoints 1

Fastapi Blog endpoints 2

Tools

  • Django
  • Django Rest Framework (DRF)
  • FastAPI
  • Pydantic with custom validation
  • Django all-auth
  • JWT Authentication
  • CORS
  • Uvicorn and Gunicorn for Python web server

Features

  • CRUD endpoints for blog posts and categories
  • CRUD endpoints for contacts
  • Asynchronous CRUD endpoints for user accounts
  • Endpoints for user authentication using DRF
  • Django settings file
  • Migrations using Django Migrations
  • Django ORM and Admin Page
  • JWT token authentication.

Installation and Usage

Use the package manager pip for installation.

- python -m venv venv
- source venv/bin/activate
- pip install -r requirements.txt
- cd fastapi-django-combo
- python manage.py makemigrations
- python manage.py migrate
- python manage.py collectstatic
- python manage.py createsuperuser
- uvicorn core.asgi:app --reload

Tutorial:

Contributing

Pull requests and contributions are welcome. For major changes, please open an issue first to discuss what you would like to change.

Ensure to follow the guidelines and update tests as appropriate.

Contact Info

If you have any question or want to reach me directly, Contact Nsikak Imoh.