{"id":15031836,"url":"https://github.com/wpcodevo/rust-mongodb-crud","last_synced_at":"2025-04-10T00:23:31.766Z","repository":{"id":121164900,"uuid":"590332243","full_name":"wpcodevo/rust-mongodb-crud","owner":"wpcodevo","description":"This comprehensive guide will teach you how to build a CRUD (Create, Read, Update, and Delete) API using the Rust programming language and MongoDB as the database.","archived":false,"fork":false,"pushed_at":"2023-01-18T21:49:02.000Z","size":22,"stargazers_count":9,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T02:07:00.887Z","etag":null,"topics":["api","crud","crud-api","docker","docker-compose","mongodb","rest-api","restful-api","rust","rust-lang","rust-language","server","warp"],"latest_commit_sha":null,"homepage":"https://codevoweb.com/build-a-crud-api-with-rust-and-mongodb/","language":"Rust","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/wpcodevo.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-18T06:54:49.000Z","updated_at":"2024-12-23T17:33:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"fe2caa25-e6f6-4ea4-9d5d-25a7dd0a6d3b","html_url":"https://github.com/wpcodevo/rust-mongodb-crud","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/wpcodevo%2Frust-mongodb-crud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpcodevo%2Frust-mongodb-crud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpcodevo%2Frust-mongodb-crud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpcodevo%2Frust-mongodb-crud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wpcodevo","download_url":"https://codeload.github.com/wpcodevo/rust-mongodb-crud/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248132381,"owners_count":21053028,"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":["api","crud","crud-api","docker","docker-compose","mongodb","rest-api","restful-api","rust","rust-lang","rust-language","server","warp"],"created_at":"2024-09-24T20:16:43.034Z","updated_at":"2025-04-10T00:23:31.751Z","avatar_url":"https://github.com/wpcodevo.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Build a CRUD API with Rust and MongoDB\n\nThis comprehensive guide will teach you how to build a CRUD (Create, Read, Update, and Delete) API using the Rust programming language and MongoDB as the database. The Rust API will run on a Warp HTTP server and use the MongoDB Rust driver to persist data in a MongoDB database.\n\n![Build a CRUD API with Rust and MongoDB](https://codevoweb.com/wp-content/uploads/2023/01/Build-a-CRUD-API-with-Rust-and-MongoDB.webp)\n\n## Topics Covered\n\n- Run the Rust MongoDB CRUD Project Locally\n- Run the Rust API with a Frontend\n- Setup the Rust Project\n- Setup MongoDB\n- Create the Database Model\n- Create the API Response Structs\n- Create the API Request Structs\n- Handle MongoDB and Application Errors\n- Create the MongoDB CRUD Functions\n    - Connect to the MongoDB Database\n    - Convert Document to Struct\n    - Perform Multiple READ Operations\n    - Perform CREATE Operation\n    - Perform Single READ Operation\n    - Perform UPDATE Operation\n    - Perform DELETE Operation\n- Implement the CRUD Functions\n    - Retrieve Documents\n    - Create a New Document\n    - Get a Single Document\n    - Edit a Document\n    - Delete a Document\n- Register the Routes and Add CORS\n\nRead the entire article here: [https://codevoweb.com/build-a-crud-api-with-rust-and-mongodb/](https://codevoweb.com/build-a-crud-api-with-rust-and-mongodb/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpcodevo%2Frust-mongodb-crud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwpcodevo%2Frust-mongodb-crud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpcodevo%2Frust-mongodb-crud/lists"}