{"id":20944130,"url":"https://github.com/diversable/leptos-shuttle-ssr","last_synced_at":"2025-09-10T10:33:29.156Z","repository":{"id":234048203,"uuid":"731428108","full_name":"diversable/Leptos-Shuttle-SSR","owner":"diversable","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-19T16:22:58.000Z","size":216,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T04:15:48.628Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/diversable.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}},"created_at":"2023-12-14T04:04:12.000Z","updated_at":"2023-12-14T04:04:17.000Z","dependencies_parsed_at":"2024-04-18T02:58:02.898Z","dependency_job_id":"5c594360-a75f-4325-92b7-7bc8b3cb1c82","html_url":"https://github.com/diversable/Leptos-Shuttle-SSR","commit_stats":null,"previous_names":["diversable/leptos-shuttle-ssr"],"tags_count":0,"template":false,"template_full_name":"leptos-community/deployment-ssr-shuttle","purl":"pkg:github/diversable/Leptos-Shuttle-SSR","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversable%2FLeptos-Shuttle-SSR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversable%2FLeptos-Shuttle-SSR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversable%2FLeptos-Shuttle-SSR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversable%2FLeptos-Shuttle-SSR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diversable","download_url":"https://codeload.github.com/diversable/Leptos-Shuttle-SSR/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversable%2FLeptos-Shuttle-SSR/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274447536,"owners_count":25287113,"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-09-10T02:00:12.551Z","response_time":83,"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":"2024-11-18T23:39:19.368Z","updated_at":"2025-09-10T10:33:29.134Z","avatar_url":"https://github.com/diversable.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"## test only\n\n---\n---\n---\n\n\n\n\n\u003cpicture\u003e\n    \u003csource srcset=\"https://raw.githubusercontent.com/leptos-rs/leptos/main/docs/logos/Leptos_logo_Solid_White.svg\" media=\"(prefers-color-scheme: dark)\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/leptos-rs/leptos/main/docs/logos/Leptos_logo_RGB.svg\" alt=\"Leptos Logo\"\u003e\n\u003c/picture\u003e\n\n# Leptos Axum Starter Template \u003ci\u003eHosted on Shuttle.rs\u003c/i\u003e\n\nNote: This Leptos starter template has been modified to deploy to Shuttle.rs\n\nFor further details and for updates, see here: https://github.com/shuttle-hq/shuttle/issues/1002#issuecomment-1853661643\n\n---\n\nThis is a template for use with the [Leptos](https://github.com/leptos-rs/leptos) web framework and the [cargo-leptos](https://github.com/akesson/cargo-leptos) tool using [Axum](https://github.com/tokio-rs/axum).\n\n## Creating your template repo\n\nIf you don't have `cargo-leptos` installed you can install it with\n\n```sh\ncargo install cargo-leptos\n```\n\nThen run\n```sh\ncargo generate --git https://github.com/Rust-WASI-WASM/shuttle-leptos-axum.git\n```\n\nto generate a new project template.\n\n```sh\ncd shuttle-leptos\n```\n\nto go to your newly created project.\nFeel free to explore the project structure, but the best place to start with your application code is in `src/app.rs`.\nAddtionally, Cargo.toml may need updating as new versions of the dependencies are released, especially if things are not working after a `cargo update`.\n\n## Running your project\n\n```sh\ncargo leptos watch\n```\n\n## Installing Additional Tools\n\nBy default, `cargo-leptos` uses `nightly` Rust, `cargo-generate`, and `sass`. If you run into any trouble, you may need to install one or more of these tools.\n\n1. `rustup toolchain install nightly --allow-downgrade` - make sure you have Rust nightly\n2. `rustup target add wasm32-unknown-unknown` - add the ability to compile Rust to WebAssembly\n3. `cargo install cargo-generate` - install `cargo-generate` binary (should be installed automatically in future)\n4. `npm install -g sass` - install `dart-sass` (should be optional in future\n\n## Compiling for Release\n```sh\ncargo leptos build --release\n```\n\nWill generate your server binary in target/server/release and your site package in target/site\n\n## Testing Your Project\n```sh\ncargo leptos end-to-end\n```\n\n```sh\ncargo leptos end-to-end --release\n```\n\nCargo-leptos uses Playwright as the end-to-end test tool.\nTests are located in end2end/tests directory.\n\n## Executing a Server on a Remote Machine Without the Toolchain\nAfter running a `cargo leptos build --release` the minimum files needed are:\n\n1. The server binary located in `target/server/release`\n2. The `site` directory and all files within located in `target/site`\n\nCopy these files to your remote server. The directory structure should be:\n\n```text\nshuttle-leptos\nsite/\n```\n\nSet the following environment variables (updating for your project as needed):\n\n```text\nLEPTOS_OUTPUT_NAME=\"shuttle-leptos\"\nLEPTOS_SITE_ROOT=\"site\"\nLEPTOS_SITE_PKG_DIR=\"pkg\"\nLEPTOS_SITE_ADDR=\"127.0.0.1:3000\"\nLEPTOS_RELOAD_PORT=\"3001\"\n```\n\nFinally, run the server binary.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiversable%2Fleptos-shuttle-ssr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiversable%2Fleptos-shuttle-ssr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiversable%2Fleptos-shuttle-ssr/lists"}