Skip to content

masci/fastapi-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fastapi-template

Quickly prototype backend services, deployment included.

Development

The project consists in a Python package implemented with a src layout.

Requirements:

  • Python 3.9+
  • Poetry

Install requirements:

$ poetry install

To run the app locally:

$ DEBUG=1 poetry run MyApi

To run the tests:

poetry run pytest

Deployment

To build the Docker container:

docker build . -t myapi

To run the container:

$ docker run -p 8080:8080 myapi

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages