{"id":19879416,"url":"https://github.com/nhachicha/rust-blog-engine","last_synced_at":"2025-09-25T13:42:42.858Z","repository":{"id":60445129,"uuid":"438440502","full_name":"nhachicha/rust-blog-engine","owner":"nhachicha","description":"A demo blog post engine in Rust, using Rocket and MongoDB","archived":false,"fork":false,"pushed_at":"2021-12-15T01:33:20.000Z","size":3006,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T02:11:58.485Z","etag":null,"topics":["mongodb","oauth2","rocket","rust","rust-lang","tera"],"latest_commit_sha":null,"homepage":"","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/nhachicha.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}},"created_at":"2021-12-15T00:13:09.000Z","updated_at":"2023-09-30T15:49:51.000Z","dependencies_parsed_at":"2022-09-29T17:40:22.109Z","dependency_job_id":null,"html_url":"https://github.com/nhachicha/rust-blog-engine","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/nhachicha%2Frust-blog-engine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhachicha%2Frust-blog-engine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhachicha%2Frust-blog-engine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhachicha%2Frust-blog-engine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nhachicha","download_url":"https://codeload.github.com/nhachicha/rust-blog-engine/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252046137,"owners_count":21685958,"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":["mongodb","oauth2","rocket","rust","rust-lang","tera"],"created_at":"2024-11-12T17:08:24.554Z","updated_at":"2025-09-25T13:42:37.819Z","avatar_url":"https://github.com/nhachicha.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"A demo blog post engine written in Rust, using [Rocket](https://rocket.rs/) and [MongoDB](mongodb.com)\n\n# Quick Start\n\n- Setup a new MongoDB cluster https://cloud.mongodb.com/ create a new database and obtain the rust connection string (under Database/Connect)\n  example (`mongodb+srv://\u003cuser\u003e:\u003cpassword\u003e@XXXX.mongodb.net/myFirstDatabase?retryWrites=true\u0026w=majority`)\n\n- Create a database `rust_blog_engine`\n\n- Add a collection `authorization` containing authorized users id (Google user id)\n```Javascript\n{\n    \"_id\": \"116710526826489061000\",\n    \"email\": \"nabil.hachicha@gmail.com\",\n    \"name\": \"Nabil Hachicha\"\n}\n```\n\n- Add a collection `blogs` which will persist our blog posts entries.\n  \u003cimg src=\"./images/MongoDB_Collections.png\" width=\"800\"\u003e\n\n\n- Setup a Google OAuth2 API and add the `client_id` and `client_secret` inside the [Rocket.toml](/Rocket.toml) file.\n\n- Start the engine using `cargo run` and providing the MongoDB connection string\n```Shell\nMDB_URL=\"mongodb+srv://\u003cuser\u003e:\u003cpassword\u003e@XXXX.mongodb.net/myFirstDatabase?retryWrites=true\u0026w=majority\" cargo run \n```\n\n# Preview\n\n### Home\n\u003cimg src=\"./images/Home.png\" width=\"800\"\u003e\n\n### Login\n\u003cimg src=\"./images/OAuth_login.png\" width=\"800\"\u003e\n\n### Admin\n\u003cimg src=\"./images/Admin_home.png\" width=\"800\"\u003e\n\n### New Blog\n\u003cimg src=\"./images/New_Blog_Validation.png\" width=\"800\"\u003e\n\n### Edit Blog\n\u003cimg src=\"./images/Edit_Blog.png\" width=\"800\"\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnhachicha%2Frust-blog-engine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnhachicha%2Frust-blog-engine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnhachicha%2Frust-blog-engine/lists"}