{"id":34979702,"url":"https://github.com/persteenolsen/fastapi-mongo-crud","last_synced_at":"2026-04-15T14:38:56.700Z","repository":{"id":289078941,"uuid":"970041615","full_name":"persteenolsen/fastapi-mongo-crud","owner":"persteenolsen","description":"A Python FastAPI serving CRUD handling Task of Todo towards MongoDB at Atlas","archived":false,"fork":false,"pushed_at":"2025-12-25T08:09:24.000Z","size":238,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-26T21:24:51.107Z","etag":null,"topics":["fastapi","mongodb","python"],"latest_commit_sha":null,"homepage":"https://fastapi-mongo-crud.vercel.app","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/persteenolsen.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-21T11:14:09.000Z","updated_at":"2025-12-25T08:09:27.000Z","dependencies_parsed_at":"2025-08-01T18:14:15.862Z","dependency_job_id":"839ec0ed-0140-4b94-a391-3419c1a58489","html_url":"https://github.com/persteenolsen/fastapi-mongo-crud","commit_stats":null,"previous_names":["persteenolsen/fastapi-mongo-crud"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/persteenolsen/fastapi-mongo-crud","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/persteenolsen%2Ffastapi-mongo-crud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/persteenolsen%2Ffastapi-mongo-crud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/persteenolsen%2Ffastapi-mongo-crud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/persteenolsen%2Ffastapi-mongo-crud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/persteenolsen","download_url":"https://codeload.github.com/persteenolsen/fastapi-mongo-crud/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/persteenolsen%2Ffastapi-mongo-crud/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31846417,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T13:28:40.153Z","status":"ssl_error","status_checked_at":"2026-04-15T13:28:29.396Z","response_time":63,"last_error":"SSL_read: 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","mongodb","python"],"created_at":"2025-12-27T00:55:26.644Z","updated_at":"2026-04-15T14:38:56.692Z","avatar_url":"https://github.com/persteenolsen.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python + FastAPI + MongoDB at Atlas\n\nAn API that serves as a Todo Web App\n\nLast updated:\n\n- 25-12-2025\n\nPython Version local:\n\n- 3.12.1\n\nPython Version at Vercel:\n\n- 3.12\n\n# Get startet\n\n- Clone the repository from my GitHub \n\n- Create a virtual environment by Powershell or VS Code:\n\n\"python -m venv \u003cname_of_venv\u003e\"\n\n- Go to the virtual environment's directory and activate it:\n\n\"Scripts/activate\"\n\n- Install the requirements:\n\n\"pip3 install -r requirements.txt\"\n\n# Set up the MongoDB at Atlas\n\n- Go to your Mongo Atlas and create the following as a \"Database First Approach\":\n\n- Database: todo_app\n\n- Collection: todos_app\n\n- Create a document as a start\n\n- Note: You could try to skip the \"Database First Approach\" and simply just run the Web App as a Test\n\n# Swagger documentation / Testing the API\n\nFastAPI provides the Swagger documentation of the API where you can perform CRUD operations\n\nTo access the documentation, we must run uvicorn:\n\n\"python main.py\"\n\nIf everything works fine the FastAPI and Swagger documentation is now available at: \n\n`http://127.0.0.1:8000/docs`\n\n- Use the Swagger for Create a Document in the MongoDB and try to perform other CRUD operations\n\n- You can go to the MongoDB at Atlas to test your data in the DB / Collections / Documents\n\nWhen you make a change to the models and start run the Web App the MongoDB should be updated\n\n# Deployment to Vercel\n\n- Take a look at the file \"vercel.json\"\n\n- Create a Project at Vercel from your repository at GitHub with the code of this FastAPI\n\n- Create the envirement variables from .env at Vercel with the connection to MongoDB at Atlas\n\n- Make a commit to your GitHub\n\n- Go to Vercel and check that the build and deployment happened and your site is in Production\n\nHappy use of FastAPI :-)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpersteenolsen%2Ffastapi-mongo-crud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpersteenolsen%2Ffastapi-mongo-crud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpersteenolsen%2Ffastapi-mongo-crud/lists"}