Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yokwejuste/stripe-payment
https://github.com/yokwejuste/stripe-payment
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/yokwejuste/stripe-payment
- Owner: yokwejuste
- Created: 2024-05-12T17:22:52.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-12T23:15:58.000Z (8 months ago)
- Last Synced: 2024-05-13T23:21:48.736Z (8 months ago)
- Language: JavaScript
- Size: 186 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Making Stripe Payments with Python and React in 2024
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.
### Simple Project Structure
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.
![Project structure](https://github.com/yokwejuste/visuleo_port/assets/71908316/fe6a2d12-14cd-4ff9-9a50-f097b5b9e8bd)
### Running the Project
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:```bash
# copy the .env files
cp frontend/.env.example frontend/.envcp 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](https://stripe.com/docs/keys).### Contributing
If you have any suggestions or improvements, feel free to open an issue or create a pull request. We welcome contributions from the community.