Skip to content

REST API development using Flask Framework (Python) while managing dependencies using Clean Architecture

License

Notifications You must be signed in to change notification settings

raminhaghjou/Clean-Architecture-RestAPI-Flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

For Create Migrations in project 1- Create Migrations folder in folder of infrastructure of project using alembic

- alembic init -t generic migrations

2- Create DB Model Configurations in persistence layer -- cities -- CityDBModelConfig.py

3- Generate migration of database using alembic with models

- alembic revision --autogenerate -m "Adding CityDBModelConfig"

4- Apply the migration

- alembic upgrade head

export PYTHONPATH=$PYTHONPATH:"/home/ramin/anaconda3/envs/flask/lib/python3.11/site-packages" export PYTHONPATH=$PYTHONPATH:"/home/ramin/Python-Projects/flask-clean-architecture-final"

About

REST API development using Flask Framework (Python) while managing dependencies using Clean Architecture

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published