Skip to content

Sanchows/mailing-service

Repository files navigation

mailing-service (Test Task)

Disclaimer

I wanted to show that I know and I can. It requires a refactoring. The code is not perfect. Thanks :)

Stack

Python3.10, Django Rest Framework, PostgreSQL, Celery, Redis, Prometheus, Grafana.

Additional features

Numbers: 3, 5, 6(django admin), 8, 10(partially)

Getting started

Clone this repository and enter into root directory. Run the following command:

docker-compose up

This should create and run docker containers such as:

  1. Web application (http://127.0.0.1:8000)
  2. Redis
  3. PostgreSQL
  4. Celery worker
  5. Celery beat
  6. Celery flower (http://127.0.0.1:5555)
  7. Prometheus (http://127.0.0.1:9090)
  8. Grafana (http://127.0.0.1:3000)

How to use

  1. To access the Admin panel, you need create a superuser. Open the terminal in a new tab and enter into docker container, then create a superuser:
docker exec -it mailing-service_webapp_1 sh
./manage.py createsuperuser
  1. You can see on the API documentation http://127.0.0.1:8000/api/docs/
  2. Before creating a client or a maling, you need to create some tags and mobile operator's codes by using the Admin panel http://127.0.0.1:8000/admin
  3. Then, try to use an API through Swagger.

Features

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages