Проект для прохождения производственной практики в компании Modsen (Python department)
Stack: Python, FastAPI, PostgreSQL, ElasticSearch.
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:
- 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!"
} - 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