The project is a service for working with customer data and managing message distribution.
The project is deployed in five Docker containers: a web application for the admin panel and API, a celery application for distribution, a postgresql database, a redis database, and an nginx server.
Models are configured for display in the admin panel.
- Python 3.8+
- Docker
- Works on Linux
- Python 3.8+
- Django 3.1
- Django Rest Framework
- PostreSQL
- Nginx
- gunicorn
- Docker, Docker Compose
- Сelery
- Redis
- Cloning the repository:
git clone git@github.com:NikitaChalykh/backend.git
cd backend # Go to the directory with the project-
Create a
.envfile usingenv.exampleas a template in the infra folder -
Installing and running the service in the container:
docker compose up -d- Launching migrations, collecting statics and creating a superuser:
docker compose exec web python manage.py migrate
docker compose exec web python manage.py collectstatic --no-input
docker compose exec web python manage.pyDocumentation on the API service:
http://127.0.0.1/redoc/
http://127.0.0.1/swagger/
Service admin panel:
http://127.0.0.1/admin/