{"id":26090527,"url":"https://github.com/changhuixu/fastapi-todo-app","last_synced_at":"2026-06-10T09:31:36.908Z","repository":{"id":280872377,"uuid":"943432479","full_name":"changhuixu/fastapi-todo-app","owner":"changhuixu","description":"fastapi todo app","archived":false,"fork":false,"pushed_at":"2026-03-06T16:17:51.000Z","size":852,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-06T19:50:34.569Z","etag":null,"topics":["fastapi","todoapp","todolist"],"latest_commit_sha":null,"homepage":"https://fastapi-todo-app-r10q.onrender.com/","language":"JavaScript","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/changhuixu.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-05T17:42:02.000Z","updated_at":"2026-03-06T16:17:56.000Z","dependencies_parsed_at":"2025-03-05T19:33:12.041Z","dependency_job_id":"bac96a51-7b60-4964-82fd-5f1a5e2a57af","html_url":"https://github.com/changhuixu/fastapi-todo-app","commit_stats":null,"previous_names":["changhuixu/fastapi-todo-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/changhuixu/fastapi-todo-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/changhuixu%2Ffastapi-todo-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/changhuixu%2Ffastapi-todo-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/changhuixu%2Ffastapi-todo-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/changhuixu%2Ffastapi-todo-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/changhuixu","download_url":"https://codeload.github.com/changhuixu/fastapi-todo-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/changhuixu%2Ffastapi-todo-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34146871,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"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":["fastapi","todoapp","todolist"],"created_at":"2025-03-09T09:34:29.619Z","updated_at":"2026-06-10T09:31:36.870Z","avatar_url":"https://github.com/changhuixu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastAPI Todo App\n\n![demo](todo_app.gif)\n\n## 1. Python virtual environment\n\n```powershell\npython -m venv venv\n.\\venv\\Scripts\\activate\n```\n\n```powershell\ndeactivate\n```\n\n## 2. pip\n\nPip is automatically installed during a Python installation. You can verify whether pip is\ninstalled by running the following command in your terminal:\n\n```powershell\npython -m pip list\n```\n\nThe preceding command should return a list of packages installed.\n\n### Basic commands\n\nWith pip installed, let's learn its basic commands. To install the FastAPI package with\npip, we run the following command:\n\n```powershell\npip install fastapi\n```\n\nOn a Unix operating system, such as Mac or Linux, in some cases, the sudo keyword is\nprepended to install global packages.\n\nTo uninstall a package, the following command is used:\n\n```powershell\npip uninstall fastapi\n```\n\nTo collate the current packages installed in a project into a file, we use the following\nfreeze command:\n\n```powershell\npip freeze \u003e requirements.txt\n```\n\nThe \u003e operator tells bash to save the output from the command into the\n`requirements.txt` file. This means that running pip freeze returns an output of\nall the currently installed packages.\n\nTo install packages from a file such as the `requirements.txt` file, the following\ncommand is used:\n\n```powershell\npip install -r requirements.txt\n```\n\nThe preceding command is mostly used in deployment.\n\n## uvicorn\n\nWe'll begin by installing the dependencies required for our application in the todos\nfolder we created earlier. The dependencies are the following:\n\n- fastapi: The framework on which we'll build our application.\n- uvicorn: An Asynchronous Server Gateway Interface module to run our application.\n\nFirst, activate your development environment by running the following command in your\nproject directory:\n\n```powershell\nsource venv/bin/activate\n```\n\nThen, install the dependencies as follows:\n\n```powershell\n(venv)$ pip install fastapi uvicorn\n```\n\nThe next step is to start our application using uvicorn. In your terminal, run the\nfollowing command:\n\n```powershell\n(venv)$ uvicorn main:app --port 8000 --reload\n```\n\nIn the preceding command, uvicorn takes the following arguments:\n\n- `file:instance`: The file containing the instance of FastAPI and the name\n  variable holding the FastAPI instance.\n- `--port PORT`: The port the application will be served on.\n- `--reload`: An optional argument included to restart the application on every\n  file change.\n\n```powershell\npython -m venv venv\n.\\venv\\Scripts\\activate\npip install fastapi uvicorn\n# pip freeze \u003e requirements.txt\npip freeze | Out-File -Encoding UTF8 requirements.txt\n\n# pip uninstall -r requirements.txt -y\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanghuixu%2Ffastapi-todo-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchanghuixu%2Ffastapi-todo-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanghuixu%2Ffastapi-todo-app/lists"}