{"id":20621537,"url":"https://github.com/emarifer/rocket_mongo_api","last_synced_at":"2026-04-11T09:01:37.184Z","repository":{"id":154829838,"uuid":"620321409","full_name":"emarifer/rocket_mongo_api","owner":"emarifer","description":"Server/API built using Rust's Rocket.rs framework and MongoDB database running in a Docker container.","archived":false,"fork":false,"pushed_at":"2023-03-28T13:39:52.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-13T23:32:42.457Z","etag":null,"topics":["docker","docker-compose","rest-api","rocket","rust","server"],"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/emarifer.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-28T13:05:17.000Z","updated_at":"2023-03-28T13:42:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"98dd55f2-3f84-43e3-a5ad-a066d2a7fc04","html_url":"https://github.com/emarifer/rocket_mongo_api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/emarifer/rocket_mongo_api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emarifer%2Frocket_mongo_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emarifer%2Frocket_mongo_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emarifer%2Frocket_mongo_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emarifer%2Frocket_mongo_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emarifer","download_url":"https://codeload.github.com/emarifer/rocket_mongo_api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emarifer%2Frocket_mongo_api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31674624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T08:18:19.405Z","status":"ssl_error","status_checked_at":"2026-04-11T08:17:08.892Z","response_time":54,"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":["docker","docker-compose","rest-api","rocket","rust","server"],"created_at":"2024-11-16T12:18:19.237Z","updated_at":"2026-04-11T09:01:36.919Z","avatar_url":"https://github.com/emarifer.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Server/API built using Rust's Rocket.rs framework and MongoDB database running in a Docker container.\n\n## To run the app:\n\nApart from the obvious prerequisite of having Rust and Docker installed, we must have an .env file in the project root with the following configuration:\n\n```\nMONGO_INITDB_ROOT_USERNAME=admin\nMONGO_INITDB_ROOT_PASSWORD=xxxx\nMONGO_INITDB_DATABASE=rust_mongodb\n\nMONGODB_USER_COLLECTION=users\nDATABASE_URL=mongodb://admin:xxxx@localhost:27017/rust_mongodb?authSource=admin\n```\n\nTo create the container with a MongoDB image and a Docker-managed storage volume run in the project root:\n\n```\n$ docker compose up -d\n```\n\nIf we have _cargo-watch_ installed using:\n\n```\n$ cargo install cargo-watch\n```\n\nwe won't have to restart the server every time we make a code change; running the following command in the root of the project:\n\n```\n$ cargo watch -x run\n```\n\nrather:\n\n```\n$ cargo run\n```\n\nthe server will restart automatically 😀.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femarifer%2Frocket_mongo_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femarifer%2Frocket_mongo_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femarifer%2Frocket_mongo_api/lists"}