.
To run this project, you need to have the following software installed:
- Python >=3.12
- Uv
- PostgreSQL
Create .env file with code kind of:
SECRET_KEY=your_secret_key
DJANGO_EMAIL_BACKEND=django.core.mail.backends.smtp.EmailBackend
DATABASE_URL=postgresql://user:password@localhost:5432/db_name
ALLOWED_HOSTS=127.0.0.1,localhost,yourdomain.com
EMAIL_HOST=smtp.example.com
EMAIL_PORT=587
EMAIL_USE_TLS=True
[email protected]
EMAIL_HOST_PASSWORD=secret123
EMAIL_TIMEOUT=10
DEBUG=True
YANDEX_CLIENT_ID=key
YANDEX_CLIENT_SECRET=key
YANDEX_REDIRECT_URI=http://localhost:8000/auth/yandex/callback/
GITHUB_CLIENT_ID=key
GITHUB_CLIENT_SECRET=key
GITHUB_REDIRECT_URI=http://localhost:8000/auth/github/callback/
TINKOFF_ID_CLIENT_ID="clien_id"
TINKOFF_ID_CLIENT_SECRET="secret_key"
TINKOFF_ID_REDIRECT_URI="https://localhost/callback"Create a PostgreSQL user (or reuse an existing one) and a database using the parameters from DATABASE_URL.
To set up the project, navigate to the project directory and run the following commands:
make installmake migratemake create-superuserTerminal 1:
make start-backendTerminal 2:
make start-frontend- запускаем проект
make docker-up
- проект становится доступен по ссылке - http://localhost:8000/
.
.