Ecommerce website built with Django 3.2.2 and Python 3.8.6
Homepage
Product-Details
- you must have python 3.8.6 or higher
git clone https://github.com/mayankt18/MyStore.git
virtualenv env
source env/bin/activate
(for linux and mac users)
env\script\activate
(for windows users)
pip install -r requirements.txt
Open the terminal or command prompt in the MyStore folder and type
python manage.py makemigrations
python manage.py migrate
python manage.py runserver
python manage.py createsuperuser
-
open terminal as root user (to do so type
sudo su
in the terminal) -
Command to be given in the terminal
-
docker-compose up --build
-
Wait for the above process to finish
-
Open a new terminal and type
docker ps
-
List of running containers will appear
-
Copy the id of container named mystore_mystore
-
In the terminal type
docker exec -it copied_id bash
-
In the next line type
python manage.py createsuperuser
-
This will ask for Username, Password and Email for the Super user account
-
Complete the fields and press enter
-
In your browser head over to localhost