{"id":21418128,"url":"https://github.com/smoke-trees/rust-backend-template","last_synced_at":"2026-05-21T10:02:33.377Z","repository":{"id":112526360,"uuid":"275569239","full_name":"smoke-trees/rust-backend-template","owner":"smoke-trees","description":"A rust backend template initialized with clean architecture.","archived":false,"fork":false,"pushed_at":"2020-06-28T11:46:49.000Z","size":30,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T06:08:59.608Z","etag":null,"topics":["backend","clean-archi","diesel","rest-api","rocket","rust","slog"],"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/smoke-trees.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":"2020-06-28T11:20:43.000Z","updated_at":"2023-04-10T05:49:16.000Z","dependencies_parsed_at":"2023-05-15T16:00:12.294Z","dependency_job_id":null,"html_url":"https://github.com/smoke-trees/rust-backend-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smoke-trees%2Frust-backend-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smoke-trees%2Frust-backend-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smoke-trees%2Frust-backend-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smoke-trees%2Frust-backend-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smoke-trees","download_url":"https://codeload.github.com/smoke-trees/rust-backend-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243918641,"owners_count":20368745,"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":["backend","clean-archi","diesel","rest-api","rocket","rust","slog"],"created_at":"2024-11-22T19:19:07.645Z","updated_at":"2026-05-21T10:02:33.327Z","avatar_url":"https://github.com/smoke-trees.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1\u003erust-backend-template\u003c/h1\u003e\n\n\u003cb\u003eFrameworks used:\u003c/b\u003e\u003cbr\u003e\n\n- Rocket - For managing the REST API\n- Diesel - ORM that supports psql, mysql etc.\n- slog - For logging\n\n\u003cbr\u003e\n\n\u003cstrong\u003e Steps to use: \u003c/strong\u003e\n\u003cbr\u003e\u003cbr\u003e\n\n- First install diesel_cli by using: `cargo install diesel`\n- Initialize your new rust project with the template by using: \u003cbr\u003e\n`git clone https://github.com/smoke-trees/rust-backend-template`\n\n- Create a `.env` file in the root directory of your project and set the `DATABASE_URL` variable\n\n- Run `diesel setup` to create the database.\n\n- Run `diesel migration run` to create all the necessary tables. Note that the table schemas\nare written under migrations.\n\n- If you want to create a new migration/table schema, run \u003cbr\u003e`diesel migration create YOUR_MIGRATION_NAME`\n\u003cbr\u003e\n\u003cbr\u003e\n\n\u003cstrong\u003e Notes: \u003c/strong\u003e\n\u003cbr\u003e\u003cbr\u003e\n\n- Running migrations manually is only needed during development. The migrations are embedded in the binary and are executed at runtime during production.\n\n\n\u003cstrong\u003eRelated links: \u003c/strong\u003e\n\n- Rocket: https://rocket.rs/\n- Diesel: http://diesel.rs/\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmoke-trees%2Frust-backend-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmoke-trees%2Frust-backend-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmoke-trees%2Frust-backend-template/lists"}