- Select products
- add them to your cart
- make a purchase by paying with a credit card
-
Clone the repository:
git clone https://github.com/pelkoa-glitch/django-shop.git
-
Install all required packages in
Requirements
section. -
Rename and fill the file
.env.example
with your dependencies. -
Run commands:
cd django-shop - go to project folder poetry install - install dependencies poetry shell - activate python venv make all - will run all docker containers
-
Go to http://0.0.0.0:8000 and enjoy the app
-
Also rabbit management will be on http://127.0.0.1:15672, flower(celery workers) will be on http://127.0.0.1:5555
make all
- up all containersmake all-down
- down all containersmake app
- up application, database and rabbitmqmake app-logs
- follow the logs in app containermake app-down
- down application and all infrastructuremake storages
- up only storages. you should run your application locally for debugging/developing purposesmake storages-logs
- follow the logs in storages containermake storages-down
- down all infrastructuremake celery
- up celery containermake celery-logs
- follow the logs in celery containermake celery-down
- down celery containermake flower
- up flower containermake flower-logs
- follow the logs in flower containermake flower-down
- down flower containermake rabbitmq
- up rabbitmq containermake rabbitmq-logs
- follow the logs in rabbitmq containermake rabbitmq-down
- down rabbitmq container
make makemigrations
- make migrations to modelsmake migrate
- apply all made migrationsmake collectstatic
- collect staticmake superuser
- create admin userconsole-mainapp
- open console in 'main app' container