Architecture Example August 2019.
- Alembic
- Flask
- Flask-SQLAlchemy
- Marshmallow
- SQLAlchemy
- SwaggerUI
- Create virtualenv and activate it
python3.7 -m venv venv && source venv/bin/activate
- Install pipenv
pip install pipenv
- Install dependencies
pipenv install -d
- Run tests
coverage run -m pytest && coverage report
-
Configure .env file
-
Run migrations
alembic upgrade head
- Run application
gunicorn -b 0.0.0.0:5000 manage:app
- Access http://localhost:5000