Skip to content

0eale0/technocracy_practice_test

Repository files navigation

Technocracy_practice_test

Trello

USE 🐣

Python Django DjangoREST Postgres JWT Docker Git Trello

Description 🎲

That project is example of simple backend for notes. In this project realised simple CRUD for models with permissions. For example user can work and see only own notes, but admin every note. User can see every category, but edit, delete, update only own. There is used JWT for auth users. User can create account by username and email. Admin have full CRUD for any model by DRF.

DB diagram 📜

drawing

Urls 🌎

  • /api/logic/note/ - viewset for note with full CRUD, have permissions, writed in description
  • /api/logic/category/ - viewset for category with full CRUD, have permissions, writed in description
  • /api/accounts/register/ - registration
  • /api/accounts/users/ - CRUD for user account, can access only admin
  • /api/token/ - get jwt token
  • /api/token/refresh - refresh jwt

Tests 👾

For this project was frited a few tests using pytest and django modelfactory. For tests created a fake database with fake objects agter testing database is deleting. Percentage of coverage 90%

Installation 🙈

Install docker and docker-compose.

Configuration 🔧

Create .env.dev like .env.example. Set the settings.

Start up 🚀

docker compose up

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published