Skip to content

shinchri/Trading-Card

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trading-Card

What is Used

  • Python 3.10
  • Django
  • Stripe (Single Payment)
  • crispy-bootstrap5

Project Photos

Home Page

Home Page

Product Detail

Product Detail

Shopping Cart

Shopping Cart

Stripe Checkout

Stripe Checkout

How to Start

Create Virtual Environment:

$ python3.10 -m venv venv
$ source venv/bin/activate
$ pip install -r requirements.txt

Inside src/config/, create .env file and create the following environment variable:

SECRET_KEY
DEBUG
STRIPE_PUBLISHABLE_KEY
STRIPE_SECRET_KEY
STRIPE_ENDPOINT_SECRET
DOMAIN_URL

For the local development, set DEBUG and DOMAIN_URL to True and http://localhost:8000/, repectively

SECRET_KEY is a Django secret key

STRIPE_PUBLISHABLE_KEY, STRIPE_SECRET_KEY, and STRIPE_ENDPOINT_SECRET must be retrieved from the Stripe (please refer to Stripe Integration section).

We can cd in to ./src.

Before we can start we need to make migrations and create super user:

$ python manage.py makemigrations
$ python manage.py migrate
$ python manage.py createsuperuser

Enter email address and password.

We can start the application with following command:

$ python manage.py runserver

That's it. Have fun!

Stripe Integration

Stripe integration was based on this tutorial.

About

A web app to post cards and buy them

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published