Skip to content

A simple API to handle books and their contents using django and django ninja

License

Notifications You must be signed in to change notification settings

ErSauravAdhikari/Karnali

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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