E-Commerce Website Built With Python Django.
Request Feature
In this project i used the following technologies: Backend: Python Djnago (Only). Frontend: Javascript, TailwindCss.
I plan to work on another e-commerce project using deferent technologies for both Backend & Frontend (Hopefuly with a team).
In order for this website to work in your machine (localhost) follow these steps:
- python
- tailwind (npm)
- Clone the repo
git clone https://github.com/black15/dj-shop.git
cd dj-shop/
- Setup a new python virtual env
python -m venv venv
source venv/bin/activate
- Install the required python libraries
pip install -r requirements.txt
- Install and create the config file for TailwindCss
npm install -D tailwindcss
npx tailwindcss init
python manage.py tailwind install
- Setup SQLite3
python manage.py migrate
- Important ! Create Stripe Account and Copy the Secret and Public Key to djshop/.env
STRIPE_SECRET_KEY='YOUR STRIPE SECRET KEY HERE'
STRIPE_PUBLISHABLE_KEY='YOUR STRIPE PUBLIC KEY HERE'
BASE_URL='http://localhost:8000/'
- Optional Create superuser
python manage.py createsuperuser
Launch 2 Terminals to run both django web server and tailwindcss.
Django
python manage.py runserver
Tailwind
python manage.py tailwind start