{"id":26983102,"url":"https://github.com/vl1507/python_dev_mashyanov_vladimir","last_synced_at":"2025-08-16T11:09:43.612Z","repository":{"id":281604276,"uuid":"943129134","full_name":"VL1507/python_dev_mashyanov_vladimir","owner":"VL1507","description":"Тестовое задание на практику в FarPost на Python-разработчика","archived":false,"fork":false,"pushed_at":"2025-04-01T11:51:58.000Z","size":170,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T12:33:37.010Z","etag":null,"topics":["farpost","fastapi","python","sqlalchemy","test-task"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VL1507.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-05T08:04:52.000Z","updated_at":"2025-04-01T11:52:02.000Z","dependencies_parsed_at":"2025-03-10T07:34:04.379Z","dependency_job_id":null,"html_url":"https://github.com/VL1507/python_dev_mashyanov_vladimir","commit_stats":null,"previous_names":["vl1507/python_dev_mashyanov_vladimir"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/VL1507/python_dev_mashyanov_vladimir","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VL1507%2Fpython_dev_mashyanov_vladimir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VL1507%2Fpython_dev_mashyanov_vladimir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VL1507%2Fpython_dev_mashyanov_vladimir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VL1507%2Fpython_dev_mashyanov_vladimir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VL1507","download_url":"https://codeload.github.com/VL1507/python_dev_mashyanov_vladimir/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VL1507%2Fpython_dev_mashyanov_vladimir/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270702562,"owners_count":24630877,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["farpost","fastapi","python","sqlalchemy","test-task"],"created_at":"2025-04-03T16:39:17.694Z","updated_at":"2025-08-16T11:09:43.585Z","avatar_url":"https://github.com/VL1507.png","language":"Python","readme":"# Тестовое задание на практику в FarPost на Python-разработчика\n\n[Тестовое задание](terms_of_reference/description.txt)\n\n## Установка\n\n```bash\ngit clone https://github.com/VL1507/python_dev_mashyanov_vladimir.git\ncd python_dev_mashyanov_vladimir\npip install uv\nuv sync\n```\n\nСоздайте .env файл. Используйте .env.example как шаблон.\n\n## Запуск\n\n```bash\nuv run uvicorn app.main:app --reload --host 127.0.0.1 --port 8000\n```\n\nили\n\n```bash\nmake runapp\n```\n\n## Изменения (нестыковки/несоответствия)\n\n### Нет связи между комментариями и постом\n\n#### Проблема\n\nНет связи между комментарием и постом, поэтому нельзя получить количество оставленных пользователем комментариев под постом для comments датасета\n\n#### Решение\n\nВ db1 добавил таблицу comments c полями\n\n- id: int\n- user_id: int - внешние ключи с users.id\n- post_id: int - внешние ключи с post.id\n- text: varchar\n- created_at: datetime\n- updated_at: datetime - пусть можно редактировать комментарии\n\n## Структура\n\n```text\n.\n├── app ─ Главная папка проекта\n│ ├── api ─ здесь находятся эндпоинты\n│ ├── database ─ для работы с БД\n│ ├── migration ─ миграции alembic\n│ ├── schemas ─ схемы получаемых и отдаваемых данных по api\n│ ├── services ─ сервисы\n│ └── utils\n└── tests ─ Тесты\n  └── unit\n```\n\n## Другие комментарии\n\n- тестов в папке tests нет\n- специально загрузил .env, db1.sqlite3 и db2.sqlite3, чтобы было проще проверить работу\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvl1507%2Fpython_dev_mashyanov_vladimir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvl1507%2Fpython_dev_mashyanov_vladimir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvl1507%2Fpython_dev_mashyanov_vladimir/lists"}