Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 1019 Bytes

README.md

File metadata and controls

44 lines (34 loc) · 1019 Bytes

Django_menu_api

Project is created based on Clean Architecture

Inward -> Simple data x Outward -> Interfaces

External systems

Web Framework: Django
Repository: Memory

Gateways

Dictionary + DB Interface
i.e. class MemRepo

Use Cases: "business logic"

Receive repo + parameters, returns results

GET: List all dishes
GET{id}: List dish
POST: Add dish
PUT: Edit dish
DELETE{id}: Remove dish

Entities

Module: Dish

TODO

  • Apply Clean Architecture
  • Layer Abstraction
  • Dependency Injection
  • UseCase Implementation
  • Serialization / Deserialization
  • Mock Repo Implementation
  • Apply Tests

Useful commands:

Testing

  • pytest

Build, run, stop

  • python manage.py runserver
  • docker-compose up
  • docker-compose up --build

While switching to mongodb, we have to comment DATABASES in settings.py and check if compose.yml contains correct data