Skip to content

l1st1k/Modsen-Practice

Repository files navigation

Modsen Practice (Python)

Проект для прохождения производственной практики в компании Modsen (Python department)
Stack: Python, FastAPI, PostgreSQL, ElasticSearch.

Commands to start the project:

docker-compose up

Database table and elastic index creation will be done automatically.
Then program will fill them with the data from posts.csv. It will take some time...
After success, you will be informed with such messages:

INFO: Application startup complete.
Project initialization finished successfully!

Now you can check documentation and test endpoints on the swagger:

Hints:

  1. If database table and elastic index filled successfully, /get_items_amount endpoint should return:
    {
    "elastic": "index (name=posts) contains 1500 items!",
    "database": "table (name=posts) contains 1500 items!"
    }
  2. If container with elasticsearch closes unexpectedly, main problem usually is your memory limit for docker.
    You should set >= 2.5 GB RAM for Docker daemon

Releases

No releases published

Packages

No packages published