Skip to content
/ runa Public

Categories API with nested child categories using DRF serialization, transactions and tests

License

Notifications You must be signed in to change notification settings

belushkin/runa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Test Assignment

Create a simple Categories API that stores category tree to database and returns category parents, children and siblings by category id.

alt text

Requirements of the assignment

  • Use Python 3.4+ and Django Framework (or Django Rest Framework).
  • Use of any other third-party libraries or Django extensions (mptt, treebread, etc) is prohibited.

Technologies used in the assignment

  • Python 3.8
  • Django 3.0.7
  • Django Rest Framework 3.11
  • Docker Compose
  • PostgreSQL

Prerequisites

Docker.io and docker-compose must be installed in the system in order to be able to use the app. OS Linux

How to setup the application

docker-compose up
docker-compose stop

How to run tests

docker-compose exec web python manage.py test

API endpoints

Additional commands at the development time

docker-compose exec web python manage.py shell
docker-compose exec web python manage.py load

Contributors

@belushkin

License

MIT License

Releases

No releases published

Packages

No packages published