Skip to content

Latest commit

 

History

History
42 lines (40 loc) · 1.11 KB

README.md

File metadata and controls

42 lines (40 loc) · 1.11 KB

Example Crud - Django Ninja

Fast Django REST Framework

CRUD - Create, Retrieve, Update, Delete are the four basic functions of persistent storage.

Auth - API Key

create

Create

create

Retrieve (all list)

create

Retrieve (get one item)

create

Update

create

Delete

create

This project was done with:

  • Python 3.8.5
  • Django 3.1.7
  • Django Ninja 0.12.1
  • python-decouple 3.4

How to run project?

  • Clone this repository.
  • Create virtualenv with Python 3.
  • Active the virtualenv.
  • Install dependencies.
  • Create .env run contrib/env_gen.py
  • Run the migrations.
  • Create user admin.
git clone https://github.com/liviocunha/django-ninja-crud.git
cd django-ninja-crud
python3 -m venv .venv
source .venv/bin/activate
pip3 install -r requirements.txt
python3 contrib/env_gen.py
python3 manage.py makemigrations products
python3 manage.py migrate
python3 manage.py createsuperuser
python3 manage.py runserver