Skip to content

j0hn-mc-clane/fast-api-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example API

To be honest I would use PyCharm as an IDE for this project

Package Management - Poetry

Why poetry you ask?

Here's a nice read

Docker

The different required services (at least for now in local environment) are composed using - you guessed it- a docker-compose.local.yml file

The images that are being built for our own applications:

  1. API: FastApi image running on uvicorn
  2. Celery: Distributed Task Queue for running Background Tasks (outside of the HTTP context)
  3. Flower: monitoring tool for Celery (I dont really like the CLI)

Currently the images are built for 2 targets: development and production

I still need to implement appropriate .env files for the environments

Build and Compose

Now, to get started:

(if you have cloned the repository simply cd into repo)

docker compose -f docker-compose-local.yml  build --no-cache --force-rm && docker compose -f docker-compose-local.yml up

Resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published