Skip to content

whiterabbitcoding/ecommerce-backend-fastapi

Repository files navigation

ECommerce Backend - Fast API

This is a fastapi service that can be a standalone webapp using the static html in the 'static' direcotry or use the API endpoints to make this a solely backend service.

It also contains IaC found in the terraform directory - this will deploy the image on AWS Fargate and make the API endpoints available over http.

Commands

Docker

docker compose up

Without docker

make dev

Terraform

cd terraform

terraform init

terraform apply

CDK

Not yet working

Setup

  • Add stripe secret key to .env
  • Alter populatedb function in helpers with your own stripe products

To Do

  • As this is a PoC, there was no tests written so writing some mock api tests is needed.

  • Cleanup main.py, some dead endpoints and minimal error handling

  • Get CDK to work

  • Include frontend deployment with terraform main.tf

About

An Ecommerce backend service for managing carts and checkout with Stripe

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published