dimitrieidifesk / MovieService

Backend application in Python using a microservice architecture designed to easily search for movies and series.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MovieService

watchers forks start

MovieService - это backend приложения, разработанное на Python, используя микросервисную архитектуру, предназначенное для удобного поиска фильмов и сериалов. Он осуществляет автоматический сбор данных о кино-новинках, сохраняет их в базу данных PostgreSQL, дает возможность редактировать и данные админкой Django, а затем, с помощью процесса ETL (извлечение, преобразование и загрузка), передает данные в Elasticsearch, где можно осуществлять поиск с использованием API на FastAPI. Удобный запуск Docker

MovieService is a backend application developed in Python using a microservice architecture designed to easily search for movies and series. It automatically collects movie news data, stores it in a PostgreSQL database, allows editing and data by the Django admin, and then, using the ETL process (extract, transform and load), passes the data to Elasticsearch, where you can search using the FastAPI API. Convenient launch with Docker

Аrchitecture:

architecture

Technologies used in the project

Frameworks:

  • FastAPI, Django

Storage:

  • PostgreSQL, ElasticSearch, Redis

Containerization

  • Docker, Docker-Compose

Web Server/Proxy:

  • Gunicorn, Uvicorn, Nginx

  • Parsing with a proxy

installation

Buy proxy addresses and put them in /worker/core/proxies.txt or don't use proxies

  1. Clone the repository:

    git clone https://github.com/dimitrieidifesk/MovieService.git
    
  2. Set environment variables:

    mv config.env.example config.env
    
  3. Run docker:

    docker-compose --env-file config.env up --build
    

Useful Commands

  1. You may need to collect Django admin static files and put them in nginx_config folder:

    python manage.py collectstatic
    
  2. Apply Django migrations:

    docker exec -it movieparser-admin_panel-1 python manage.py migrate
    

About

Backend application in Python using a microservice architecture designed to easily search for movies and series.


Languages

Language:JavaScript 44.5%Language:CSS 37.5%Language:Python 17.0%Language:Dockerfile 0.5%Language:Shell 0.4%