Skip to content

# (* DEMO *) Lost Empire is a E-Commerce website for selling ESPORTS merchandise #

License

Notifications You must be signed in to change notification settings

LTSana/lost-empire

Repository files navigation

lost-empire

# (* DEMO *) Lost Empire is a E-Commerce website for selling ESPORTS merchandise

Django Python PayPal SDK

GitHub Twitter

This is a free time project I built to prove my group in building e-commerce website, and to gain expierince in using Django's Framework even more. All the merchandise on the Website are not real. Non of the Teams/Brands are associated with the project.

This project is just a Demo there for will not accept any actual money and the PayPal is set to SandBox mode.

The only user data that's keep on the Database is. Encrypted Password Email address First Name and Last Name Purchase history Data on when the account was made and last logged in

I use reCAPTCHA to prevent spam account creations and login attempts. The version of reCAPTCHA is version 3 to prevent user's the need to press on the 'I'M NOT A ROBOT' button.

Installation Guide

You'll need to connect to a Postgres Database or any Database that supports JSONFields in order to run the WebApp

1. Install Python3+ (https://www.python.org/)
2. Run 'pip install r- requirements.txt'
3. Set '.env' (An example of the values for enviroment are listed bellow)
4. Set 'DEBUG' to 'True' in settings.py
5. Run 'python manage.py makemigrations'
6. Run 'python manage.py migrate'
7. Run 'python manage.py runserver' (This will run it on 127.0.0.1:8000 by default) if you wish to run it on a specific IP address run 'python manage.py runserver xxx.xxx.xxx.xxx:xxxx'

'.env'

DATABASE_URL=xxxxx

SECRET_KEY = xxxxxx

RECAPTCHA_SITE_KEY = xxxx
RECAPTCHA_SECRET_KEY = xxxx

SENDGRID_API_KEY = xxxxx
MAIL_SENDER = xxxx

PAYPAL_CLIENT_ID = xxxx
PAYPAL_CLIENT_SECRET = xxxx

CLOUDINARY_NAME = xxxxxxxxxx
CLOUDINARY_API_KEY = xxxxxxxxxxxxxxx
CLOUDINARY_API_SECRET = xxxxxxxxxxxxxxxxx