The project implements applications:
- products - which is responsible for working with products
- users - responsible for authorization, registration, email confirmation, working with the shopping cart, profile display
- orders - ability to pay for goods
Celery is used to send a message to the client's email
Redis is used for caching product cards
- Python
- PostgreSQL
- Redis
All actions should be executed from the source directory of the project and only after installing all requirements.
-
Firstly, create and activate a new virtual environment:
python3.9 -m venv ../venv
source ../venv/bin/activate
-
Install packages:
pip install --upgrade pip
pip install -r requirements.txt
-
Run project dependencies, migrations, fill the database with the fixture data etc.:
./manage.py migrate
./manage.py loaddata
./manage.py runserver
-
Run Redis Server:
redis-server
-
Run Celery:
celery -A store worker --loglevel=INFO