{"id":18398746,"url":"https://github.com/mongodb-developer/mongodb-with-fastapi","last_synced_at":"2025-04-05T14:03:04.604Z","repository":{"id":37035539,"uuid":"318459086","full_name":"mongodb-developer/mongodb-with-fastapi","owner":"mongodb-developer","description":"Example of using MongoDB with FastAPI","archived":false,"fork":false,"pushed_at":"2024-03-11T11:09:16.000Z","size":13,"stargazers_count":340,"open_issues_count":1,"forks_count":163,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-29T13:04:21.520Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/mongodb-developer.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":"2020-12-04T08:58:06.000Z","updated_at":"2025-03-27T19:59:25.000Z","dependencies_parsed_at":"2024-03-11T11:45:07.550Z","dependency_job_id":null,"html_url":"https://github.com/mongodb-developer/mongodb-with-fastapi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb-developer%2Fmongodb-with-fastapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb-developer%2Fmongodb-with-fastapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb-developer%2Fmongodb-with-fastapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb-developer%2Fmongodb-with-fastapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mongodb-developer","download_url":"https://codeload.github.com/mongodb-developer/mongodb-with-fastapi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247345849,"owners_count":20924102,"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","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":[],"created_at":"2024-11-06T02:24:14.735Z","updated_at":"2025-04-05T14:03:04.578Z","avatar_url":"https://github.com/mongodb-developer.png","language":"Python","readme":"# MongoDB with FastAPI\n\nThis is a small sample project demonstrating how to build an API with [MongoDB](https://developer.mongodb.com/) and [FastAPI](https://fastapi.tiangolo.com/).\nIt was written to accompany a [blog post](https://developer.mongodb.com/quickstart/python-quickstart-fastapi/) - you should go read it!\n\nIf you want to fastrack your project even further, check out the [MongoDB FastAPI app generator](https://github.com/mongodb-labs/full-stack-fastapi-mongodb) and eliminate much of the boilerplate of getting started.\n\n## TL;DR\n\nIf you really don't want to read the [blog post](https://developer.mongodb.com/quickstart/python-quickstart-fastapi/) and want to get up and running,\nactivate your Python virtualenv, and then run the following from your terminal (edit the `MONGODB_URL` first!):\n\n```bash\n# Install the requirements:\npip install -r requirements.txt\n\n# Configure the location of your MongoDB database:\nexport MONGODB_URL=\"mongodb+srv://\u003cusername\u003e:\u003cpassword\u003e@\u003curl\u003e/\u003cdb\u003e?retryWrites=true\u0026w=majority\"\n\n# Start the service:\nuvicorn app:app --reload\n```\n\n(Check out [MongoDB Atlas](https://www.mongodb.com/cloud/atlas) if you need a MongoDB database.)\n\nNow you can load http://localhost:8000/docs in your browser ... but there won't be much to see until you've inserted some data.\n\nIf you have any questions or suggestions, check out the [MongoDB Community Forums](https://developer.mongodb.com/community/forums/)!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmongodb-developer%2Fmongodb-with-fastapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmongodb-developer%2Fmongodb-with-fastapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmongodb-developer%2Fmongodb-with-fastapi/lists"}