{"id":15138381,"url":"https://github.com/taeyoonkwon/rust-rocket-sample","last_synced_at":"2025-09-24T10:31:16.206Z","repository":{"id":37341101,"uuid":"458239834","full_name":"TaeyoonKwon/rust-rocket-sample","owner":"TaeyoonKwon","description":"Fully working CRUD REST API example using Rust and Rocket.rs","archived":false,"fork":false,"pushed_at":"2024-07-15T15:55:26.000Z","size":54,"stargazers_count":62,"open_issues_count":0,"forks_count":19,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-01-08T10:06:48.763Z","etag":null,"topics":["boilerplate","mongodb","okapi","rest-api","rocket","rust","template"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TaeyoonKwon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-11T15:26:45.000Z","updated_at":"2024-12-17T14:31:32.000Z","dependencies_parsed_at":"2024-09-16T12:32:19.761Z","dependency_job_id":"294f898e-a886-43be-b787-84d2cc1e1925","html_url":"https://github.com/TaeyoonKwon/rust-rocket-sample","commit_stats":null,"previous_names":[],"tags_count":4,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TaeyoonKwon%2Frust-rocket-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TaeyoonKwon%2Frust-rocket-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TaeyoonKwon%2Frust-rocket-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TaeyoonKwon%2Frust-rocket-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TaeyoonKwon","download_url":"https://codeload.github.com/TaeyoonKwon/rust-rocket-sample/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233011235,"owners_count":18611078,"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":["boilerplate","mongodb","okapi","rest-api","rocket","rust","template"],"created_at":"2024-09-26T07:22:56.723Z","updated_at":"2025-09-24T10:31:10.858Z","avatar_url":"https://github.com/TaeyoonKwon.png","language":"Rust","readme":"# rust-rocket-sample\n[![CI](https://github.com/TaeyoonKwon/rust-rocket-sample/actions/workflows/ci.yaml/badge.svg)](https://github.com/TaeyoonKwon/rust-rocket-sample/actions/workflows/ci.yaml)\n\nFully working CRUD REST API example using \n- Rust (stable)\n- Rocket.rs\n- mongodb\n- okapi\n\n\n## 🚀 Features\n- Establish MongoDB connection using rocket Adhoc fairing.\n- Custom error handlings with rocket Responder and okapi OpenApiGenerator.\n- CORS fairing and Counter fairing to demonstrate how fairing works.\n- Example model Customer to demonstrate how Rust structs interact with MongoDB.\n- Request guard using ApiKey.\n- REST API endpoints with simple CRUD using Customer model.\n- Implement Open API documentation using okapi.\n- Test codes to test API endpoints.\n\n\n## 🔧 Building and Testing\n\n### debug mode\n\u003e cargo run\n\n### release mode\n\u003e cargo build --release \u0026\u0026 cargo run --release\n\n\n### unit testing\n\u003e cargo test\n\n\u003cbr/\u003e\n\nℹ️ _You should create your own `.env` file including `MONGO_URI`, `MONGO_DB_NAME`, and `API_KEY` to run it._\n\n## 📑 License\n[MIT](https://github.com/TaeyoonKwon/rust-rocket-sample/blob/main/LICENSE) Copyright (c) 2022 Taeyoon Kwon\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaeyoonkwon%2Frust-rocket-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaeyoonkwon%2Frust-rocket-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaeyoonkwon%2Frust-rocket-sample/lists"}