{"id":25287518,"url":"https://github.com/oxide-byte/rust-berlin-leptos","last_synced_at":"2026-05-18T19:43:11.375Z","repository":{"id":276626283,"uuid":"929808956","full_name":"oxide-byte/rust-berlin-leptos","owner":"oxide-byte","description":"Simple Clone to show the same Site of Rust-Berlin https://berline.rs/ with different Frameworks","archived":false,"fork":false,"pushed_at":"2025-03-16T16:55:17.000Z","size":672,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T17:34:05.696Z","etag":null,"topics":["leptos","rust"],"latest_commit_sha":null,"homepage":"https://berline.rs/","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/oxide-byte.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":"2025-02-09T13:07:50.000Z","updated_at":"2025-03-16T16:55:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"2235c16b-396b-403a-b3f9-7bbfe4c3949e","html_url":"https://github.com/oxide-byte/rust-berlin-leptos","commit_stats":null,"previous_names":["oxide-byte/rust-berlin-leptos"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxide-byte%2Frust-berlin-leptos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxide-byte%2Frust-berlin-leptos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxide-byte%2Frust-berlin-leptos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxide-byte%2Frust-berlin-leptos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oxide-byte","download_url":"https://codeload.github.com/oxide-byte/rust-berlin-leptos/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247517882,"owners_count":20951713,"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":["leptos","rust"],"created_at":"2025-02-12T22:39:53.709Z","updated_at":"2026-05-18T19:43:11.368Z","avatar_url":"https://github.com/oxide-byte.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust - Berlin Hack and Learn Challenge\n\n## Purpose\n\nThis implementation is a adaptation of the Rust UserGroup **Rust Hack and Learn** Berlin \nchallenge: https://github.com/andreasklostermaier/halreslib in different Frameworks.\n\nMy choice **Leptos** as Frontend.\n\nLink to the meetup group: https://berline.rs/\n\nEven whe most of features are implemented and functional, there is still room for progress...\n\n## Implementation\n\nSALT = (S)urrealDB (A)xum (L)eptos (T)ailwind + GraphQL\n\nThe Frameworks in use:\n\nFrontend:\n\n* Leptos 0.8.14\n* Thaw 0.5.0-Beta\n* Tailwind 4.0\n* GraphQL Query + Mutation + Subscription\n\nBackend:\n\n* Axum 0.8.3\n* Tower 0.5.2 (Static Page Server)\n* async-graphql (GraphQL)\n\nDatabase:\n\n* SurrealDB\n\n## Installation / Preparation\n\n* Rust: https://www.rust-lang.org/tools/install\n* Trunk: https://trunkrs.dev/guide/getting-started/installation.html\n* TailwindCss: https://tailwindcss.com/docs/installation/using-vite\n\nPS: For TailwindCss I use the Mac Brew option:\n\n```shell\nbrew update\nbrew install tailwindcss\n```\n\n## Running\n\nThe implementation uses Trunk to generate and run the Client Side Pages. It includes Hot Reloading\n\n```bash\ntrunk serve --open\n```\n\n## Build\n\n```bash\ntrunk build --release --public-url \"/web\"\n```\n\nThe files generated in the client folder /dist can be moved on the\nServer side to the folder /static. To access to the files from Axum\nyou need to manually adapt in the index.html file the relative path\nfor the links as the wasm file:\n\nExample:\n\nhref=\"rust-berlin-leptos-7a6a9f219c87d073.js\" --\u003e href=\"/web/rust-berlin-leptos-7a6a9f219c87d073.js\"\n\n## Starting the Backend:\n\n```bash\ncd server\ncargo run\n```\n\nThe different links on the Backend side:\n\n```text\nServer on:        http://127.0.0.1:8080\nLeptos client on: http://127.0.0.1:8080/web\nGraphiql on:      http://127.0.0.1:8080/graphiql\nPlayground on:    http://127.0.0.1:8080/playground\n```\n\n## Security\n\nThere are currently 2 users implemented with KeyCloak. \n\n- admin@demo.com:password\n- user@demo.com:password\n\n![alt text](docs/screenshot-keycloak.png \"screenshot Keycloak\")\n\n## Improvements\n\n- Review SurrealDB specially for SQL Injection and Query Builder\n- Review and Optimize code for removing .clone()\n- Review and Optimize Signals\n- Review and Optimize Component Communication\n- Fixing Loging / Refresh actions\n- Fixing Error Handling / Server Authority 401/403\n- Fixing bugs ;-)\n- ...\n\n## Bonus\n\nA module for using Ratatui is under client-ratatui\n\n## Features to plan:\n\n- Add a Security Layer \n\n## Links\n\nLeptos Documentation:\n\nhttps://book.leptos.dev/\n\nFor playing with Tailwind:\n\nhttps://play.tailwindcss.com/\n\n![alt text](docs/screenshot-leptos.png \"screenshot Leptos\")\n\n![alt text](docs/screenshot-ratatui.png \"screenshot Ratatui\")","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foxide-byte%2Frust-berlin-leptos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foxide-byte%2Frust-berlin-leptos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foxide-byte%2Frust-berlin-leptos/lists"}