{"id":31584234,"url":"https://github.com/vertyll/rust-axum-app","last_synced_at":"2025-10-06T00:46:45.692Z","repository":{"id":282294280,"uuid":"948101248","full_name":"vertyll/rust-axum-app","owner":"vertyll","description":"Rest API written in Rust, with DI, JWT and more. Using Rust Axum and PostgreSQL.","archived":false,"fork":false,"pushed_at":"2025-07-27T11:24:25.000Z","size":1389,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-27T13:20:19.830Z","etag":null,"topics":[],"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/vertyll.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":"2025-03-13T18:48:32.000Z","updated_at":"2025-07-27T11:24:28.000Z","dependencies_parsed_at":"2025-03-13T20:37:14.055Z","dependency_job_id":null,"html_url":"https://github.com/vertyll/rust-axum-app","commit_stats":null,"previous_names":["vertyll/rust-axum-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vertyll/rust-axum-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vertyll%2Frust-axum-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vertyll%2Frust-axum-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vertyll%2Frust-axum-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vertyll%2Frust-axum-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vertyll","download_url":"https://codeload.github.com/vertyll/rust-axum-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vertyll%2Frust-axum-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278542685,"owners_count":26004061,"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","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-10-06T00:46:43.914Z","updated_at":"2025-10-06T00:46:45.684Z","avatar_url":"https://github.com/vertyll.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust Axum App\n\nA web server application built with Rust and Axum framework.\n\n## Description\n\nThis project implements a simple HTTP server using the Axum web framework for Rust.\n\n## Technologies\n\n- REST API with Axum\n- Asynchronous runtime with Tokio\n- JSON serialization with Serde\n- SeaORM - Async ORM for Rust\n- cargo-watch for REPL\n- rust-i18n for internationalization\n- PostgreSQL for database\n\n## Features\n\n- JWT authentication with refresh token (http only secure cookie)\n- RBAC (Role-Based Access Control)\n- internationalization\n- modularity architecture\n- CRUD operations\n- repository pattern\n- error handling\n- JWT extractor / JWT middleware (Guard)\n- role extractor (Guard)\n- request validation with DTO\n- migration with SeaORM\n- database seeding\n- configuration module\n- database module\n- files module\n- emails module\n- app state struct with connection pool and configuration\n- dependency injection with Arc dyn Trait\n\n## Prerequisites\n\n- Rust 2024 edition\n- Cargo package manager\n\n## Installation\n\nClone the repository and build the project:\n\n```bash\ngit clone \u003crepository-url\u003e\ncd rust-axum-app\ncargo build\n```\n\n## Development (without Docker/Podman)\n\n### Configuration environment:\n\n1. Install PostgreSQL and create a database: `rust_axum_app`\n2. Copy the `.env.example` file to `.env` and set the database connection string.\n\n```bash\ncp .env.example .env\n```\n\n### Dev (REPL)\n\nInstall the sea-orm-cli with cargo.\n\n```bash\ncargo install sea-orm-cli@1.1.0\n```\n\nInstall cargo-watch to REPL.\n\n```bash\ncargo install cargo-watch\n```\n\nRun the server in REPL mode.\n\n````bash\ncargo watch -q -c -w src/ -x \"run\"\n````\n\n### Dev\n\nInstall the sea-orm-cli with cargo.\n\n```bash\ncargo install sea-orm-cli@1.1.0\n```\n\nRun the server.\n\n```bash\ncargo run\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvertyll%2Frust-axum-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvertyll%2Frust-axum-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvertyll%2Frust-axum-app/lists"}