DEV Community

Cover image for Django & Stripe - Open-Source Mini eCommerce
Sm0ke
Sm0ke

Posted on โ€ข Edited on โ€ข Originally published at blog.appseed.us

21

Django & Stripe - Open-Source Mini eCommerce

Hello!

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

Thanks for reading! - Content provided by App Generator.

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.

Django & 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/sample-django-stripe.git
$ cd sample-django-stripe
Enter fullscreen mode Exit fullscreen mode

๐Ÿ‘‰ Step #2 - Install the dependencies

$ pip install -r requirements.txt
Enter fullscreen mode Exit fullscreen mode

๐Ÿ‘‰ Step #3 - Create .env and provide the Stripe Secrets

STRIPE_SECRET_KEY = <STRIPE_KEY_HERE>
STRIPE_PUBLISHABLE_KEY = <STRIPE_KEY_HERE>
DOMAIN_URL = <IP_HERE>
Enter fullscreen mode Exit fullscreen mode

๐Ÿ‘‰ Step #4 - Start the app

$ python manage.py migrate
$ python manage.py runserver
Enter fullscreen mode Exit fullscreen mode

At this point, we should be able to access the app in the browser. The above setup is also explained in a video material published on YouTube.


Thanks for reading! For more resources, feel free to access:

Image of Timescale

๐Ÿš€ pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applicationsโ€”without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read full post โ†’

Top comments (4)

Collapse
 
crearesite profile image
WebsiteMarket โ€ข

Thank you!
Is possible to edit the products once the product is LIVE?

Collapse
 
sm0ke profile image
Sm0ke โ€ข

Feature under development.
๐Ÿš€๐Ÿš€

Collapse
 
uithemes profile image
ui-themes โ€ข

really nice.

Collapse
 
sm0ke profile image
Sm0ke โ€ข

๐Ÿš€๐Ÿš€

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more