Skip to content

gdarid/fast_account_mall_unit

Repository files navigation

A boilerplate project

A boilerplate project with a few models to use when bootstrapping new Python 3 projects with FastApi.

Features

  • Test automation and environment provisioning using Tox
  • Static code analysis using Flake8
  • Unit testing using pytest
  • Enforced code coverage threshold using coverage
  • Dependencies pinned to the major version, allowing for backwards-compatible updates when upstream
  • Licensed under CC0 Public Domain Dedication

You can copy/paste anything and not worry about a thing, not even giving original authors attribution.

Models

  • "Account", a given customer account (a company), has a unique ID and a name
  • "Mall", a given shopping mall, has a unique ID, a name and a foreign key to a given Account
  • "Unit", a given store inside a shopping mall, has a unique ID, a name and a foreign key to a given Mall

The current version is using a SQLite database (see .env file) and a very basic ORM.

Run the application in development mode

uvicorn api.main:app --reload

You will see the automatic interactive API documentation (provided by Swagger UI) here : Interactive API docs

You will see the alternative automatic documentation (provided by ReDoc) here : Interactive API docs - Redoc

API description

Run test suite

tox

OR

coverage run -m pytest
coverage report
coverage html

Github workflows

The github workflows can be found in the .github folder

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages