SyCloth - it's not big clothing shop, wich give standars possiblities for clients. In the project created 4 applications: products, users, orders, api.
- Pyhton
- Django + DRF
- PostgreSQL
- Redis
- Celery
Also, the following libraries were used: python-decouple, Pillow, django-allauth, django-debug-toolbar and others.
To begin, install: Python | PostgreSQL | Redis
Now, create a root folder on your computer. Next, open it in a code editor or IDE.
Create virtual environment:
python -m venv .venv
And activate it:
.venv\Scripts\Activate
Next, install packages:
pip install --upgrade pip
pip install -r requirements.txt
Apply migration and load data from fixture for products and appearance other information:
python manage.py migrate
python manage.py loaddata <path_to_fixture_files>
After, launch Redis and Celery using these commands:
redis-server
celery -A store worker --loglevel=INFO
Then, run server:
python manage.py runserver
These commands do the same thing as described above:
python3.9 -m venv ../venv
source ../venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
./manage.py migrate
./manage.py loaddata <path_to_fixture_files>
redis-server
celery -A store worker --loglevel=INFO
./manage.py runserver