{"id":24918177,"url":"https://github.com/ikayevaibar/factory_bot_site","last_synced_at":"2026-05-18T03:33:59.015Z","repository":{"id":111047166,"uuid":"589746288","full_name":"IkayevAibar/factory_bot_site","owner":"IkayevAibar","description":"Backend часть Тестового таска для собеседование в Фабрика Проектов","archived":false,"fork":false,"pushed_at":"2023-01-17T11:13:21.000Z","size":25285,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-03T09:42:59.848Z","etag":null,"topics":["backend","django","python"],"latest_commit_sha":null,"homepage":"https://factory-bot-site.herokuapp.com/","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/IkayevAibar.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":"2023-01-16T20:52:34.000Z","updated_at":"2023-04-13T04:05:44.000Z","dependencies_parsed_at":"2023-03-18T00:15:39.999Z","dependency_job_id":null,"html_url":"https://github.com/IkayevAibar/factory_bot_site","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/IkayevAibar/factory_bot_site","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IkayevAibar%2Ffactory_bot_site","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IkayevAibar%2Ffactory_bot_site/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IkayevAibar%2Ffactory_bot_site/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IkayevAibar%2Ffactory_bot_site/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IkayevAibar","download_url":"https://codeload.github.com/IkayevAibar/factory_bot_site/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IkayevAibar%2Ffactory_bot_site/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33163754,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"online","status_checked_at":"2026-05-18T02:00:06.436Z","response_time":71,"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":["backend","django","python"],"created_at":"2025-02-02T09:18:57.724Z","updated_at":"2026-05-18T03:33:59.002Z","avatar_url":"https://github.com/IkayevAibar.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Factory_bot + site\nПривет, попытаюсь кратко и ясно всё обьяснить.\nСайт и Бот находятся на разных веб-серверах\n## Этапы юзер флоу\n\n0. **Регистрация** -\u003e POST http://factory-bot-site.herokuapp.com/auth/users/  with body  {username, password, first_name}\n1. **Авторизация** -\u003e POST https://factory-bot-site.herokuapp.com/api/token/ with body  {username, password}  Этот token для авторизаций JWT\n2. **Заходим в бота в тг** @the_factory_task_bot / Cперва надо включить его переходя на http://factory-bot-aibar.herokuapp.com/\n3. **Пишем /generate_token**  :black_square_button: Возможно из за heroku придётся пару раз попытаться\n    1. Пишем логин\n    2. Пишем пароль\n    3. Видем результат\n    4. И если всё окей, то теперь мы можем отправлять сообщение через сайт\n4. **Получаем свой token в**  -\u003e https://factory-bot-site.herokuapp.com/api-token-auth/  with body  {username, password}  Remark///Этот token для 5 пункта\n5. **Находим айди бота в**  -\u003e POST https://factory-bot-site.herokuapp.com/api/bots/get_bots_id_by_token/   with body  {token}\n6. **Теперь мы можем отправить сообщение через API в чат** -\u003e POST https://factory-bot-site.herokuapp.com/send_message_to_chat/ with body  {bot(айди бота), user(айди юзера), message_body}\n7. **Вы должны будете получить сообщение в тг чате от бота**\n8. **Получаем все ваши сообщения** -\u003e POST https://factory-bot-site.herokuapp.com/get_all_messages/ with body  {bot(айди бота), user(айди юзера)\n\n____\n- [X] ссылка на реп бота https://github.com/IkayevAibar/factory_bot\n\n- [X] Это весь функционал вроде, есть еще лист юзеров, ботов и всё такое, ну это всё лишнее,\n\n- [X] Все эти эндпоинты есть в файле для постмана factory.postman_collection.json(https://github.com/IkayevAibar/factory_bot_site/blob/master/factory.postman_collection.json)\n\n- [ ] Не тестил 4 и 5 пункт пока что\n\n____\n\n```mermaid\nerDiagram\n    SITE ||--o{ BOT : connect\n```\n____\n\n# Спасибо за внимание!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikayevaibar%2Ffactory_bot_site","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fikayevaibar%2Ffactory_bot_site","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikayevaibar%2Ffactory_bot_site/lists"}