Simple banking REST API using Event Sourcing. Application was built using Flask and SQLAlchemy.
Development environment uses Docker-Compose.
In order to configure development settings, please create .env
file based on .env.sample
file.
docker-compose up #creates development environment
Database is versioned using migrations generated by Flask-Migrate.
docker-compose exec web db upgrade #run migrations againt database
The chosen test framework is Pytest. Default test database is SQLite.
docker-compose exec pytest #run unit and integration tests
API documentation is defined in Swagger and is served at /api/docs
by Flasgger.