eCommerce-backend
How To Use
To clone and run this application, you'll need Git installed on your computer. From your command line:
Clone this repository
git clone https://github.com/TilavovD/SHOPPING-demo.git
Go into the repository
cd SHOPPING-demo
Create virtual environment
python -m venv env
Activate virtual environment
source env/bin/activate # for linux
env/scripts/activate # for windows
Install dependencies
pip install -r requirements.txt
Run migrations to setup SQLite database:
python manage.py migrate
Create superuser to get access to admin panel:
python manage.py createsuperuser
.env
file in root directory
Create And fill it yourself or just copy-paste from .env copy file
Login stripe using following codes:
./stripe login --interactive
Press enter and copy-paste following api-key in terminal to asked place
sk_test_51LzPsRCGhinPHEzyjDC42vWZlwMF2RgPHpJjhaTDLHCqlXCmmL3ZoFqelcLq2vhUD4TLJaZkp48sBYYt7QDQ6DNr004XGmzKDt
or you can use your own api-key also
Set stripe webhook:
./stripe listen --forward-to localhost:8000/api/v1/orders/webhook/
Run server:
python manage.py runserver