- install docker
- clone this repo
- change directory to cloned repo
- run in terminal -
docker build -t super_shop_system .
you should see --
Step 1/18 : FROM python:3.8-buster
..................................
..................................
..................................
Successfully tagged super_shop_system:latest
docker run -it -p 8000:8000 \
-e DJANGO_SUPERUSER_USERNAME=admin \
-e DJANGO_SUPERUSER_PASSWORD=admin \
-e [email protected] \
super_shop_system
you should see --
Superuser created successfully.
[2021-06-22 13:28:59 +0000] [10] [INFO] Starting gunicorn 20.1.0
[2021-06-22 13:28:59 +0000] [10] [INFO] Listening at: http://0.0.0.0:8010 (10)
[2021-06-22 13:28:59 +0000] [10] [INFO] Using worker: sync
[2021-06-22 13:28:59 +0000] [17] [INFO] Booting worker with pid: 17
[2021-06-22 13:28:59 +0000] [18] [INFO] Booting worker with pid: 18
[2021-06-22 13:28:59 +0000] [19] [INFO] Booting worker with pid: 19
- After you run this command, you should be able to visit
http://localhost:8000
andhttp://localhost:8000/admin
in your browser to access the application.
- clone this repo
- change directory to cloned repo
- make virtual environment from python 3.8 and activate it
- run in terminal -
pip install -r requirements.txt
python manage.py migrate
python manage.py collectstatic --no-input
python manage.py runserver
you should see --
Watching for file changes with StatReloader
Performing system checks...
System check identified no issues (0 silenced).
June 22, 2021 - 20:00:00
Django version 3.2.4, using settings 'super_shop_system.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.