Docker
Docker-Compose
Git
git clone https://github.com/iamnovichek/smakolyk.git
cd smakolyk
mv .env.example .env
(How and where to obtain EMAIL_HOST_USER
and EMAIL_HOST_PASSWORD
it will be explained at the end of this documentation)
# DB settings
DB_PORT=5432
DB_HOST=postgres
POSTGRES_DB=postgres
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_HOST_AUTH_METHOD=md5
# Django settings
SECRET_KEY=#
# SMTP settings
EMAIL_HOST_USER=#
EMAIL_HOST_PASSWORD=#
# Site management settings
ACCOUNTANT=#
ORDERS_RECEIVER=#
# Celery
CELERY_BROKER_IP=redis
You WON'T be able to make your orders on weekend due to the website logic. If you want to do so, follow steps below.
if self.is_weekend():
return redirect("smakolyk:weekend")
docker-compose up -d --build