{"id":20109856,"url":"https://github.com/zepolimer/fs-exercice","last_synced_at":"2026-04-13T05:49:08.049Z","repository":{"id":246140055,"uuid":"820215174","full_name":"Zepolimer/fs-exercice","owner":"Zepolimer","description":"Chat system using FastAPI and React","archived":false,"fork":false,"pushed_at":"2024-06-26T16:16:50.000Z","size":220,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-29T11:57:43.943Z","etag":null,"topics":["fastapi","python","react","typescript"],"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/Zepolimer.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":"2024-06-26T03:19:53.000Z","updated_at":"2024-08-13T17:00:50.000Z","dependencies_parsed_at":"2025-01-13T05:40:45.053Z","dependency_job_id":"86e9e6be-238b-4726-aa26-40a44c68c7f4","html_url":"https://github.com/Zepolimer/fs-exercice","commit_stats":null,"previous_names":["zepolimer/fs-exercice"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Zepolimer/fs-exercice","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zepolimer%2Ffs-exercice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zepolimer%2Ffs-exercice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zepolimer%2Ffs-exercice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zepolimer%2Ffs-exercice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zepolimer","download_url":"https://codeload.github.com/Zepolimer/fs-exercice/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zepolimer%2Ffs-exercice/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31741541,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T05:13:27.074Z","status":"ssl_error","status_checked_at":"2026-04-13T05:13:25.150Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["fastapi","python","react","typescript"],"created_at":"2024-11-13T18:09:39.557Z","updated_at":"2026-04-13T05:49:07.992Z","avatar_url":"https://github.com/Zepolimer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fs-exercice\n\nYou are required to code a chat application between a user and an agent.\nA front-end application sends user messages to a back-end server, which replies back with the\nagent's answer.\n\n\u003cbr/\u003e\n\n#### Required:\n- Separate the chat system into two sibling folders: “front” and “back”, where both\napplications can be run independently. \n- The back-end server implements a RESTful service, exchanging JSON data with GET or\nPOST methods. \n- Each user message is sent to the back-end with the entire chat history. On the other\nhand, the server replies with the agent’s reply only, without including the entire chat\nhistory. \n- A chat history is required to be a series of alternate \"user\" and \"agent\" messages. If that\nis not the case - for example, two consecutive \"user\" messages - the history should be\nconsidered invalid. \n- If the server receives an invalid chat history, it should reply with a 400 Bad Request.\n\n#### Not required:\n- The agent’s replies can be static content, meaning some fixed content. There's no need\nto simulate a real agent.\n- The text can appear on the front page in block, without streaming word by word.\n- Chat persistence.\n- User management (multi-user management, user authentication, etc.)\n\n\u003cbr/\u003e\n\n## Back CMD using FastAPI, Pydantic\n### Using Docker\n#### Build the Docker image and install the full project\n```commandline\nmake start\n```\n#### Debug container and launch server\n```commandline\nmake debug\nuvicorn main:app --host 0.0.0.0 --port 8000\n```\n#### Debug container and launch tests\n```commandline\nmake debug\npython3 -m unittest\n```\n#### Stop containers\n```commandline\nmake stop\n```\n\u003cbr/\u003e\n\n### Without Docker\n#### 1. Move to src folder\n```commandline\ncd back/src\n```\n#### 2. Install dependencies\n```commandline\npython3 install -r requirements.txt\n```\n#### 3.1 Launch server\n```commandline\npython3 -m uvicorn main:app --reload\n```\n#### 3.2 Launch tests\n```commandline\npython3 -m unittest\n```\n\n\u003cbr/\u003e\n\n## Front using React, TailwindCSS\n### Using Docker\n#### Build the Docker image and install the full project\n```commandline\nmake start\n```\n#### Debug container and run app\n```commandline\nmake debug\nyarn start\n```\n#### Stop containers\n```commandline\nmake stop\n```\n\u003cbr/\u003e\n\n### Without Docker\n#### 1. Move to src folder\n```commandline\ncd front\n```\n#### 2. Install dependencies\n```commandline\nyarn install\n```\n#### 3. Run app\n```commandline\nyarn start\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzepolimer%2Ffs-exercice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzepolimer%2Ffs-exercice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzepolimer%2Ffs-exercice/lists"}