/fastapi-vslice

**** POC **** FastApi Vertical Slice Architecture

Primary LanguagePython

FastAPI - Vertical Slice Architecture Example

Pre-requisites

  • Python 3.9
  • Poetry 1.2.1
  • Docker

Install dependencies

poetry install

Install pre-commit hooks

pre-commit install

Environment variables

Duplicate the .env.dist file and rename it to .env. Then, fill in the values for the environment variables.

Commands

Start docker containers:

make up

Stop docker containers:

make down

Start local server

make start-local

Populate db with fake data

make load-fixtures

Launch tests

make test

Launch test with coverage

make coverage

Launch test with features coverage

make coverage-features