A short Full Stack demo app for implementing a simple e-commerce site
-
Create a
python3
virtual environment:Minimum Python version 3.6+, recommended 3.10+
virtualenv env
if your system still has python2 as default python make sure you have python3 and then:
virtualenv env -p python3
-
Activate the virtualenv:
-
for Mac/Linux (use the extension for your respective shells, like
.sh
,.bash
,.zsh
, etc)source env/bin/activate
-
for windows
.\env\Scripts\activate.ps1
-
-
Install the dependencies from
requirements.txt
pip install -r requirements.txt
-
Run django
makemigration
s and thenmigrate
for initializing the database (SQLite3)python ./manage.py makemigrations
python ./manage.py migrate
-
Create a superuser for admin interface
python manage.py createsuperuser
-
Run the server
python ./manage.py runserver
-
Install storefront dependencies
cd storefront npm install
-
Run the server
npm run dev