Skip to content

Restaurant Menu Rest API made with Django | Clean Architecture

Notifications You must be signed in to change notification settings

opielapatryk/Django_Menu_API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Restaurant Menu Rest API made with Django | Clean Architecture

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published