{"id":14263255,"url":"https://github.com/Bechma/realworld-actix-fullstack","last_synced_at":"2025-08-13T09:32:42.068Z","repository":{"id":99097563,"uuid":"577501557","full_name":"Bechma/realworld-actix-fullstack","owner":"Bechma","description":"Realworld Fullstack with Rust + Tera + SQLx","archived":false,"fork":false,"pushed_at":"2024-01-13T00:47:20.000Z","size":417,"stargazers_count":27,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-22T13:17:53.435Z","etag":null,"topics":["actix-web","fullstack","realworld","rust","sqlx"],"latest_commit_sha":null,"homepage":"https://realworld-fullstack.shuttleapp.rs/","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/Bechma.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":"2022-12-12T22:00:03.000Z","updated_at":"2024-08-21T22:35:16.000Z","dependencies_parsed_at":"2024-01-13T05:21:43.313Z","dependency_job_id":"2e7a2375-17fa-45d0-8a60-f02b652933bb","html_url":"https://github.com/Bechma/realworld-actix-fullstack","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/Bechma%2Frealworld-actix-fullstack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bechma%2Frealworld-actix-fullstack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bechma%2Frealworld-actix-fullstack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bechma%2Frealworld-actix-fullstack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bechma","download_url":"https://codeload.github.com/Bechma/realworld-actix-fullstack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229754542,"owners_count":18119128,"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":["actix-web","fullstack","realworld","rust","sqlx"],"created_at":"2024-08-22T13:05:25.332Z","updated_at":"2025-08-13T09:32:42.045Z","avatar_url":"https://github.com/Bechma.png","language":"Rust","readme":"# Realworld with Actix + Tera + SQLx\n\nYou can check it online in https://realworld-actix-fullstack-77c9.shuttle.app/\n\n## How to run it\n\nIt's important to have docker installed. I'm using a brand new serverless approach for rust applications:\n[shuttle](https://www.shuttle.rs/). At this moment is in alpha but it looks promising:\n\n```bash\ncargo install cargo-shuttle\ncp Secrets.toml.example Secrets.toml\ncargo shuttle run\n```\n\n## How to test it\n\nYou will need a postgres database up and running locally in order to execute tests:\n\n```bash\ndocker run -e POSTGRES_PASSWORD=postgres -p 5432:5432 --name postgres postgres\ncargo test\n```\n\n## How to deploy it\n\n1. Test the deploy locally:\n\n```bash\ncargo shuttle login --api-key YOUR_API_KEY_HERE\nSQLX_OFFLINE=true cargo shuttle run\n```\n\n2. Once everything is fine, the next step is to create the secrets:\n\n```bash\n# Remember to change the secret to a random and secure hex string\ncp Secrets.toml.example Secrets.toml\n```\n\n3. Change the name of the project in `Shuttle.toml` and deploy it\n\n```bash\n# As the time of writting, they don't have a nice testing environment, so we can't test it during deployment\ncargo shuttle deploy --no-test\n```\n\n## Extra notes\n\n- I wanted to write 0 javascript, so the experience is like a MPA. Everything is written in Rust with Jinja2 style\n  templates(Tera). Very fast, although the limitation of pure HTML is a major drawback if this is a real realworld\n  application that needs to be maintained and extended.\n- All features are applied. However, instead of following a JWT authentication, I used session based.\n- In HTML, there's `\u003ca\u003e` to make get requests to other pages and `\u003cform\u003e` to make get or post requests. This limitation\n  forced me to only make routes with GET and POST.\n- The tests can be expanded more, however, during compilation time SQLx makes sure that all queries are well writen and\n  returns what we expect(so that's somewhat tested =D).\n","funding_links":[],"categories":["rust"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBechma%2Frealworld-actix-fullstack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBechma%2Frealworld-actix-fullstack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBechma%2Frealworld-actix-fullstack/lists"}