Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

freemindcore/django-easy-api

Repository files navigation

DJANGO-EASY-API

A boilerplate Django REST API project for quickly getting started, easy, secure and fast. Based on django-api-framework -- a django-ninja/extra powered project.

Features

  • Automatic CRUD API for all django models
  • Async Django-Ninja APIs (with OpenAPI/Swagger docs)
  • For Django 3.1+, Works with Python 3.8+
  • Twitter Bootstrap v5
  • 12-Factor based settings via django-environ
  • Secure by default. We believe in SSL.
  • Optimized development and production settings
  • Registration via django-allauth
  • Comes with custom user model ready to go
  • Run tests with unittest or pytest: start with 100% coverage
  • Default integration with pre-commit for identifying simple issues before submission to code review
  • Configuration for Celery and Flower (the latter in Docker setup only)
  • Integration with Sentry for error logging

Install

make install

Start up

python manage.py runserver_plus

or

uvicorn --reload config.asgi_local:application --lifespan off

Unit test

make test-cov

---------- coverage: platform darwin, python 3.8.10-final-0 ----------
Name                                   Stmts   Miss  Cover
----------------------------------------------------------
easy_api/__init__.py                       2      0   100%
easy_api/conftest.py                       8      0   100%
easy_api/contrib/__init__.py               0      0   100%
easy_api/contrib/sites/__init__.py         0      0   100%
easy_api/users/__init__.py                 0      0   100%
easy_api/users/adapters.py                11      0   100%
easy_api/users/admin.py                   13      0   100%
easy_api/users/apps.py                    10      0   100%
easy_api/users/context_processors.py       3      0   100%
easy_api/users/forms.py                   15      0   100%
easy_api/users/models.py                  13      0   100%
easy_api/users/tasks.py                    6      0   100%
easy_api/users/urls.py                     4      0   100%
easy_api/users/views.py                   27      0   100%
----------------------------------------------------------
TOTAL                                    112      0   100%

You are all set!

Visit http://127.0.0.1:8000 for your website.

Visit http://127.0.0.1:8000/admin for your adminsite.

Visit http://127.0.0.1:8000/api_admin/v1/docs for the automatic interactive API documentation (provided by Swagger UI).

image

Thanks

Special thanks to cookiecutter-django for the great starter template

https://github.com/cookiecutter/cookiecutter-django

About

A boilerplate Django REST API project for quickly getting started, easy, secure and fast.

Resources

License

Stars

Watchers

Forks

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.