Skip to content

cantoniazzi/drink-delivery-api

Repository files navigation

drink-delivery-api

Python 3.8.3 main

It's responsible for managing the registration flow of beverage distributors.

architecture

drink-delivery-api

built With

docs

Run the API:

make docker/run

and access:

docs: http://localhost:5000/docs || redoc: http://localhost:5000/redoc

monitoring

We have also configured the / metrics route that exports metrics for prometheus.

How to build

make docker/build

how to run

make docker/run

If you want to run / debug the site, you can use the vscode launch.json suggested by the project

how to lint

make docker/lint

how to test

make docker/test-unit
make docker/test-integration

We separate a specific document to be used in the integrations tests in a parameterized way. You can change this number in the configuration if you wish.

how to deploy

For the CD process, a GH workflow should be created, which is triggered by the case of a new release and thus, executes the commands to deploy the application to the respective environment.

k8s way

In the deploy directory, there is a sample of Kubernetes app deployment which you can use as a template if you want and if your infrastructure is prepared for Kubernetes apps. If you choose to do so, you'll need to include a command in the CD flow to add the deployment to your cluster. Check out more information here:

AWS lambda way

If you choose to deploy this API as a lambda, you will have to use a library that envelopes the code into the lambda format (this lib Mangum might make sense) and then proceeds to the lambda deployment process usually using flow with AWS S3 and AWS SAM. If you choose to do so, you'll need to include a command in the CD flow to add the deployment to your cluster.

database

For the creation of the database, we recommend that you create a cloud formation template and then run it on the AWS panel to create the database. Once it's done, it will be necessary to create the API table in your bank and for that, you should use the .sql script contained in the database directory of this repository.

miscellanies

To update the project diagram initilize your local environment:

make local/init

So run the command:

make local/diagram

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published