https://github.com/app-generator/ecommerce-django-stripe
Django Stripe Sample - Soft UI Design (Free Sample) | AppSeed
https://github.com/app-generator/ecommerce-django-stripe
django-and-stripe django-ecom django-ecommerce django-ecommerce-project django-sample django-stripe django-stripe-sample django-template ecommerce ecommerce-application ecommerce-django ecommerce-django-project stripe-sample
Last synced: about 2 months ago
JSON representation
Django Stripe Sample - Soft UI Design (Free Sample) | AppSeed
- Host: GitHub
- URL: https://github.com/app-generator/ecommerce-django-stripe
- Owner: app-generator
- License: other
- Created: 2022-10-13T05:49:51.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-05T11:41:13.000Z (3 months ago)
- Last Synced: 2025-04-06T18:13:26.003Z (about 2 months ago)
- Topics: django-and-stripe, django-ecom, django-ecommerce, django-ecommerce-project, django-sample, django-stripe, django-stripe-sample, django-template, ecommerce, ecommerce-application, ecommerce-django, ecommerce-django-project, stripe-sample
- Language: HTML
- Homepage: https://blog.appseed.us/django-stripe-mini-ecommerce/
- Size: 9.11 MB
- Stars: 66
- Watchers: 2
- Forks: 22
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Django & Stripe `Mini eCommerce`
**Open-source eCommerce Starter** that loads the products from `JSON` files saved in the `templates directory` (no database required) and uses a decent UI for page styling - Powered by **Django & Stripe**.
- [Django mini eCommerce](https://github.com/app-generator/ecommerce-django-stripe) sources (this repo)
- [Rocket eCommerce](https://app-generator.dev/product/rocket-ecommerce/django/) - **PRO Version**
- ✅ Stripe Integration
- ✅ Checkout, Discounts Page
- ✅ Tags, Categories
- ✅ Analytics
- ✅ Generated Sitemap
## Manual Build
> 👉 Download the code from the GH repository (using `GIT`)
```bash
$ git clone https://github.com/app-generator/ecommerce-django-stripe.git
$ cd ecommerce-django-stripe
```
> 👉 Create `.env` using provided `env.sample`
Add `.env` file in your projects root directory and add the following credentials
```
DEBUG=True
SECRET_KEY=
STRIPE_SECRET_KEY=
STRIPE_PUBLISHABLE_KEY=
DOMAIN_URL=
```
> 👉 Install dependencies
```bash
$ python -m venv env
$ source env/bin/activate
$ pip install -r requirements.txt
```
> 👉 Migrate DB & Start the APP
```bash
$ python manage.py migrate
$ python manage.py runserver
```Visit `http://localhost:8000` in your browser. The app should be up & running.
> 👉 Access the products and initiate a payment
**IMPORTANT**: Make sure your Stripe account is running in `TEST Mode` and Use Test CC provided by Stripe:
- **CC Number**: `4242 4242 4242 4242`
- Any data for the rest of the fields
## Create a new Product
- Go to `products/templates/products` directory
- Create a new `JSON` file with data:
- `name`: Used in product page & Cards
- `price`: Used for payment
- `currency`: Used for payment
- `info`: used in cards
- `short_description`: used in product page
- `full_description`: used in product page
- Create Media Files
- Go to `products/static/products`
- Create a directory using the same name as for `JSON` file
- Create `card.jpg`: 500x335px
- Create `cover.jpg`: 2100x1400px
- Start or refresh the app
- The new product should be listed in the `home` page
- Product page is available at address:
- `http://127.0.0.1:8000/product//` where the SLUG is the name of the JSON file
## Load and create product from Stripe
- Go to `Create Product` route in `Products` dropdown [You must be a superuser]
- On the left side there should be a button `Get Products From Stripe` this button will pull all the products associated with the stripe account. [demo](./products/static/products/demo/load-stripe-product.png)
- There will be product list, you can create a product by clicking the `Create` button. [demo](./products/static/products/demo/create-product.png)
- On the right side you will see the local product list and a button `Edit`.
- You can edit a product from here. [ID is not editable] [demo](./products/static/products/demo/edit-product.png)
> Sample product page generated for [Air ZOOM Pegasus](./products/templates/products/product-air-zoom-pegasus.json), assets loaded from [here](./products/static/products/product-air-zoom-pegasus)
## Need More? Go PRO with [Rocket eCommerce](https://app-generator.dev/product/rocket-ecommerce/django/)
Production-ready eCommerce CMS integrated with Stripe, Analytics, Discounts Page, Docker and CI/CD support - Actively supported by [App-Generator](https://app-generator.dev/).
| Status | Item | info |
| --- | --- | --- |
| ✅ | Stack | Django, Tailwind, React |
| ✅ | Payments | Stripe |
| ✅ | Categories | YES |
| ✅ | Tags | YES |
| ✅ | Checkout | YES |
| ✅ | Discounts Page | YES |
| ✅ | Products Import | Stripe |
| ✅ | Products Local Customization | YES |
| ✅ | Analitycs | Weekly, Monthly, Year `Sales` |
| ✅ | Transactions Tracking | YES |
| ✅ | Docker | YES |
| ✅ | CI/CD | Render |
---
Django & Stripe `Mini eCommerce` - Open-source eCommerce Starter provided by [App-Generator](https://app-generator.dev/).