FastAPI & Stripe – Free eCommerce Starter

Hello Coders!

This article presents an open-source Mini eCommerce project that uses Stripe for payments and FastAPI as the backend. The eCommerce section content is loaded from JSON and the information is managed by a simple routing logic. The source…


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by Sm0ke

Hello Coders!

This article presents an open-source Mini eCommerce project that uses Stripe for payments and FastAPI as the backend. The eCommerce section content is loaded from JSON and the information is managed by a simple routing logic. The source code can be found on GitHub under the MIT License (free for commercial or eLearning activities). Thanks for reading!

Another useful feature of this project is the Bootstrap 5 design, provided by Creative-Tim. Soft UI Design, the UI Kit used to style the pages, comes with 50+ components and reusable widgets for at least a decent eCommerce project.

FastAPI & Stripe eCommerce - Animated Presentation.

✨ How to use it

The fastest way to start the product and play around with the codebase is to access the repository and follow the build instructions presented on the README file.

👉 Step #1 - Clone the project from the public repository:

$ git clone https://github.com/app-generator/ecommerce-fastapi-stripe.git
$ cd ecommerce-fastapi-stripe

👉 Step #2 - Rename env.sample to .env and provide the Stripe Secrets

# Stripe Secrets
STRIPE_PUBLISHABLE_KEY=pk_test_PUBLIC_KEY_HERE
STRIPE_SECRET_KEY=pk_test_SECRET_KEY_HERE

👉 Step #3 - Install modules inside a virtual environment

$ virtualenv env
$ source env/bin/activate
$ pip install -r requirements.txt

👉 Step #4 - Start the app

$ uvicorn src.app:app --reload

The above command will start the project using the port 8000

FastAPI & Stripe eCommerce - HOMEpage (free product)

The above setup is also explained in a video material published on YouTube.

Thanks for reading! For more resources and support, please access:


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by Sm0ke


Print Share Comment Cite Upload Translate Updates
APA

Sm0ke | Sciencx (2022-10-27T17:30:45+00:00) FastAPI & Stripe – Free eCommerce Starter. Retrieved from https://www.scien.cx/2022/10/27/fastapi-stripe-free-ecommerce-starter/

MLA
" » FastAPI & Stripe – Free eCommerce Starter." Sm0ke | Sciencx - Thursday October 27, 2022, https://www.scien.cx/2022/10/27/fastapi-stripe-free-ecommerce-starter/
HARVARD
Sm0ke | Sciencx Thursday October 27, 2022 » FastAPI & Stripe – Free eCommerce Starter., viewed ,<https://www.scien.cx/2022/10/27/fastapi-stripe-free-ecommerce-starter/>
VANCOUVER
Sm0ke | Sciencx - » FastAPI & Stripe – Free eCommerce Starter. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/10/27/fastapi-stripe-free-ecommerce-starter/
CHICAGO
" » FastAPI & Stripe – Free eCommerce Starter." Sm0ke | Sciencx - Accessed . https://www.scien.cx/2022/10/27/fastapi-stripe-free-ecommerce-starter/
IEEE
" » FastAPI & Stripe – Free eCommerce Starter." Sm0ke | Sciencx [Online]. Available: https://www.scien.cx/2022/10/27/fastapi-stripe-free-ecommerce-starter/. [Accessed: ]
rf:citation
» FastAPI & Stripe – Free eCommerce Starter | Sm0ke | Sciencx | https://www.scien.cx/2022/10/27/fastapi-stripe-free-ecommerce-starter/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.