Skip to content

kevinbowen777/django-api-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-api-library

Status GitHub Issues License Coverage

  • A basic library website & API built with Django 5.1.x & Django REST Framework (DRF) 3.13.x
Table of Contents

Features

Installation

  • git clone https://github.com/kevinbowen777/django-api-library.git
  • cd django-api-library
  • Local installation
    • poetry install
    • python manage.py migrate
    • python manage.py createsuperuser
    • python manage.py runserver
  • Docker installation
    • docker compose up --build
    • docker compose exec web python manage.py migrate
    • docker compose exec web python manage.py createsuperuser Additional commands:
      • docker compose exec web python manage.py shell_plus (loads Django shell autoloading project models & classes)
      • docker run -it django-start-web bash (CLI access to container)
  • Browse to http://127.0.0.1:8000 or http://127.0.0.1:8000/resources/
  • Pre-commit:
    • To add the hook, run the following command in the poetry shell:
      • pre-commit install

Testing

  • docker compose exec web python manage.py test
  • coverage run -m pytest
  • Nox (includes sessions for coverage, lint, typing, safety, tests)
    • testing supported for Python 3.10, 3.11, 3.12, 3.13
    • e.g. nox, nox -rs lint-3.13, nox -s tests
      • nox
      • nox -s coverage-3.12
      • nox -s docs-3.13
      • nox -rs lint-3.10 (Use the 'r' flag to reuse existing session)
      • nox -s pyright-3.11
      • nox -s safety (will run tests against all Python versions)
      • nox -s tests

API URLs


Application Demo

A live application demonstration:

TBD


Screenshots

Home

Home

Index

Message Index

Profile Page

Profile Page

Login Page

Login Page

Book List View

Book List View

Swagger-UI

Swagger-UI

Redoc API page

Redoc API page

Menu Bar

Menu Bar

Email Address management

Email Address management


Reporting Bugs

Visit the Issues page to view currently open bug reports or open a new issue.