Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 1.51 KB

README.md

File metadata and controls

54 lines (35 loc) · 1.51 KB

Karnali

Karnali is a demo app I created while learning how to use the Django Ninja Rest API framework.

It's a straightforward app with two models for books and chapters. A book is referenced in each chapter.

I spent around 3–4 hours learning this new framework, and here is the sample app I created as a consequence.

Please do not use this code in any production situations, despite the fact that I feel I do not need to mention it. This app will not be updated, and no new features will be added.

Lessons Learned

  • Building REST APIs in Django
  • Django Ninja Rest Framework
  • Adding authentication in Django Ninja API [Cookie Based]
  • Creating folder based structure for a single app

Acknowledgements

Authors

Screenshots

image

Run Locally

Please follow the usual Installation and execution proceduere for django based projects.

Virtual Env Configuration[Optional]

pip3 install virtualenv
python3 -m virtualenv venv

For Linux Systems

source ./venv/bin/activate

Run Locally

pip install -r requirements.txt
python manage.py migrate
python manage.py runserver