Skip to content

Restaurant Menu Rest API made with Flask | Clean Architecture

Notifications You must be signed in to change notification settings

opielapatryk/Flask_Menu_API

Repository files navigation

Flask_Menu

Project is created based on Clean Architecture

Inward -> Simple data x Outward -> Interfaces

External systems

Web Framework: Flask
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: Remove dish

Entities

Module: Dish

TODO

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

Useful commands:

Testing

  • ./manage.py test
  • ./manage.py test -- --integration

Build, run, stop

  • ./manage.py compose build web
  • ./manage.py compose up
  • ./manage.py compose down

About

Restaurant Menu Rest API made with Flask | Clean Architecture

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published