Skip to content

prostospirit/flask-test-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Task:

implement based on hexagonal architecture

mamba + expects + mocks tests for the service

Reference:

https://medium.com/@vsavkin/hexagonal-architecture-for-rails-developers-8b1fee64a613 https://en.wikipedia.org/wiki/Hexagonal_architecture_(software) https://www.youtube.com/watch?v=tg5RFeSfBM4

Installation

  1. Go to the project folder
cd path/to/flask-test-project
  1. Create virtualenv.
python3 -m venv env
  1. Activate it.
source env/bin/activate
  1. Install requirement packages:
pip install -r requirements.txt
  1. Create db:
(venv) $ python3
>>> from app import db
>>> db.create_all()

Run

Run app:

python3 app.py

Run tests example command:

pipenv run mamba tests/test_route_create.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages