This project contains the code for a simple purchase flow using Stripe Checkout. The backend is built with Python and Flask, and the frontend is built with React.
For the sake of simplicity we provided a simple structure for the project. The project is divided into two main directories: server
and frontend
. The server
directory contains the Flask app that serves the API, and the frontend
directory contains the React app that serves the frontend.
We provided a docker-compose.yml
file that allows you to run the project with a single command. To run the project, make sure you have Docker installed on your machine, and then run the following command:
# copy the .env files
cp frontend/.env.example frontend/.env
cp server/.env.example server/.env
# run the project using docker-compose
docker compose up
Note: The secret keys in the
.env
files are for testing purposes only They are publicly available on the stripe documentation.
If you have any suggestions or improvements, feel free to open an issue or create a pull request. We welcome contributions from the community.