{"id":31762395,"url":"https://github.com/gameinstance/ratts","last_synced_at":"2026-04-13T14:33:44.463Z","repository":{"id":310984334,"uuid":"1041696200","full_name":"gameinstance/ratts","owner":"gameinstance","description":"A DevOps ready, starter web application written in Rust with Axum, Tokio and supporting TypeScript frontends.","archived":false,"fork":false,"pushed_at":"2025-12-04T18:46:35.000Z","size":323,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-08T02:23:01.299Z","etag":null,"topics":["angular","argon2id","axum-rs","docker","node-js","postgresql","rust","rust-lang","sqlx","tokio-rs","typescript"],"latest_commit_sha":null,"homepage":"https://www.gameinstance.com/post/118/RATTS","language":"TypeScript","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/gameinstance.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-20T22:02:28.000Z","updated_at":"2025-12-04T18:42:47.000Z","dependencies_parsed_at":"2025-08-21T12:38:25.367Z","dependency_job_id":"fbaf7c24-2efe-4eaa-aa8c-b8fec5185807","html_url":"https://github.com/gameinstance/ratts","commit_stats":null,"previous_names":["gameinstance/ratts"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/gameinstance/ratts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gameinstance%2Fratts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gameinstance%2Fratts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gameinstance%2Fratts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gameinstance%2Fratts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gameinstance","download_url":"https://codeload.github.com/gameinstance/ratts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gameinstance%2Fratts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31757481,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T13:27:56.013Z","status":"ssl_error","status_checked_at":"2026-04-13T13:21:23.512Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["angular","argon2id","axum-rs","docker","node-js","postgresql","rust","rust-lang","sqlx","tokio-rs","typescript"],"created_at":"2025-10-09T22:18:28.435Z","updated_at":"2026-04-13T14:33:44.454Z","avatar_url":"https://github.com/gameinstance.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RATTS\n\n`RATTS` is a DevOps ready, starter web application featuring \u003cu\u003estateless JWT/JWE authentication\u003c/u\u003e and\n\u003cu\u003edeferred persistence user registration\u003c/u\u003e, written in [`Rust`] with [`axum`], [`tokio`], [`SQLx`], [`argon2`], and\n[`lettre`].\nIt features an [`Angular`] frontend with a clear public/private split, mirroring the structure of modern web applications.\nOn the backend, [`PostgreSQL`] provides persistence with a dedicated `user` table and full migration support.\n\n---\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"docs/logo.png\" alt=\"Logo\" height=\"100\"/\u003e\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  made with \u003cu\u003eR\u003c/u\u003eust, \u003cu\u003eA\u003c/u\u003exum and \u003cu\u003eT\u003c/u\u003eokio, supporting any \u003cu\u003eT\u003c/u\u003eype\u003cu\u003eS\u003c/u\u003ecript UI\n\u003c/p\u003e\n\n---\n\nDeploy it locally with [`Docker`]\n\n```bash\ngit clone https://github.com/gameinstance/ratts.git\ncd ratts\ncp -v .env.template .env\ndocker compose up --build\n```\nand test it on [http://localhost:3000](http://localhost:3000), _checking_ emails with mailcatcher at\n[http://localhost:1080](http://localhost:1080).\n\n---\n\n[![Rust](https://img.shields.io/badge/Rust-1.80+-orange?logo=rust)](https://www.rust-lang.org/)\n[![Angular](https://img.shields.io/badge/Angular-18-red?logo=angular)](https://angular.io/)\n[![TypeScript](https://img.shields.io/badge/TypeScript-3178C6?logo=typescript\u0026logoColor=fff)](https://www.typescriptlang.org/)\n[![Postgres](https://img.shields.io/badge/Postgres-15-blue?logo=postgresql)](https://www.postgresql.org/)\n[![Docker](https://img.shields.io/badge/Docker-✓-2496ED?logo=docker)](https://www.docker.com/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)\n\n**Minimum requirement**: [`Docker`], optionally: [`Rust`] (1.80+) and [`Node.js`] (v18+).\n\n## Description\n\nRATTS implements a stateless-first REST architecture: all regular requests are handled without server-side session storage.\nThe backend handles API requests from `/api` and serves files located in ./static from the webserver root.\n\nThe frontend is technology-flexible, with [`Angular`] as the default, but any [`TypeScript`] framework can plug in seamlessly\nthanks to strongly-typed API contracts generated with **ts-rs**.\n\nThe repo comes with a multi-stage `Dockerfile` that builds the backend, the frontend and then packs the deployment image.\nThe `docker compose` setup will build, if needed, and run the web application image. It fetches, initiates and runs\nthe official **PostgreSQL** Docker image with storage volume. For testing purposes, a demo SMTP **mailcatcher** is\nlaunched to capture and display the emails sent by the webserver.\n\n## Reuse\n\nTo start your next application using RATTS, you must first change the credentials in `.env` and configure an actual\nSMTP server. You can then extend and improve it to your requirements. As an MIT creation, you are free to rebrand it.\n\n```bash\ncd ratts\nsed -i 's/ratts/your_awesome_project/g' *\nsed -i 's/RATTS/YourAwesomeProject/g' *\n```\n\n\n## Features\n\n- **Authentication**\n  - JWT/JWE-based login\n  - Argon2id password hashing\n  - Short-lived access tokens\n- **Registration flow**\n  - Email verification with short TTL token\n  - Deferred persistence user registration\n- **Security**\n  - Angular route guards for protected pages\n  - Minimal and generic responses on failures\n- **User area**\n  - Public pages (home, about, login, register)\n  - Private dashboard (accessible only after login)\n- **DevOps ready**\n  - Docker compose for build and deployment\n\n\n## Changelog\n\n#### [1.2.2] - 2025/12/04\n- Reduced Angular component boilerplate by wrapping Observable into Promise on simple requests.\n- Replaced the predefined dummy password with a randomly generated one; minor security improvement.\n\n#### [1.2.1] - 2025/11/07\n- Corrected Angular memory-leaks caused by unsubscribed observer subscriptions.\n\n#### [1.2.0] - 2025/10/24\n- **New functionality**\n  - Added support for return-url on login.\n\n- **Breaking frontend changes**\n  - Re-organized frontend directory structure to improve feature development.\n  - Split the monolithic app into lazy loaded chunks.\n  - Added interceptor-based header patching on authenticated requests.\n  - Corrected the use of observers for authentication service requests.\n\n#### [1.1.0] - 2025/09/24\n- Replaced JWT with JWE for improved token security/privacy.\n\n#### [1.0.0] - 2025/08/20\n- Initial release with core features.\n\n\n---\n\n## License\n\n[`License: MIT`] - feel free to use this as a starting point for your own projects.\n\n---\n\n[`Rust`]: https://www.rust-lang.org/\n[`axum`]: https://github.com/tokio-rs/axum\n[`tokio`]: https://github.com/tokio-rs/tokio\n[`SQLx`]: https://github.com/launchbadge/sqlx/\n[`argon2`]: https://docs.rs/argon2/latest/argon2/\n[`lettre`]: https://github.com/lettre/lettre\n[`PostgreSQL`]: https://www.postgresql.org/\n[`Node.js`]: https://nodejs.org/\n[`TypeScript`]: https://www.typescriptlang.org/\n[`Angular`]: https://angular.io/\n[`Docker`]: https://www.docker.com/\n[`License: MIT`]: https://mit-license.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgameinstance%2Fratts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgameinstance%2Fratts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgameinstance%2Fratts/lists"}