{"id":13597297,"url":"https://github.com/leptos-rs/start-spin","last_synced_at":"2025-04-13T00:35:50.716Z","repository":{"id":217950172,"uuid":"745202544","full_name":"leptos-rs/start-spin","owner":"leptos-rs","description":"A starter template for Leptos and Spin","archived":false,"fork":false,"pushed_at":"2024-02-20T05:12:45.000Z","size":70,"stargazers_count":17,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-13T00:35:44.072Z","etag":null,"topics":["leptos","rust","spin","template"],"latest_commit_sha":null,"homepage":"https://spin-leptos-ssr-49mccqzz.fermyon.app","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/leptos-rs.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":"2024-01-18T20:55:00.000Z","updated_at":"2025-02-24T17:58:55.000Z","dependencies_parsed_at":"2024-01-18T23:09:55.950Z","dependency_job_id":"fa924048-7a21-495b-8e7a-6d811bba77e0","html_url":"https://github.com/leptos-rs/start-spin","commit_stats":null,"previous_names":["diversable/spin_leptos_ssr_starter","leptos-rs/start-spin"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leptos-rs%2Fstart-spin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leptos-rs%2Fstart-spin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leptos-rs%2Fstart-spin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leptos-rs%2Fstart-spin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leptos-rs","download_url":"https://codeload.github.com/leptos-rs/start-spin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248650433,"owners_count":21139671,"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","spin","template"],"created_at":"2024-08-01T17:00:29.812Z","updated_at":"2025-04-13T00:35:50.691Z","avatar_url":"https://github.com/leptos-rs.png","language":"Rust","funding_links":[],"categories":["Starter Templates"],"sub_categories":["Official"],"readme":"\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 Spin SSR Starter Template\n\nThis is a template for use with the [Leptos][leptos] web framework and the [Spin][spin-install] WASI platform.\n\n[Click here to see the deployed version of this starter](https://spin-leptos-ssr-49mccqzz.fermyon.app).\n\n## Creating Your Repo\n\nFirst, ensure that you have Rust 'nightly' with both the `wasm` and `wasm32-wasi` targets, along with `cargo-generate`\n- `rustup toolchain install nightly --allow-downgrade`\n- `rustup target add wasm32-unknown-unknown`\n- `rustup target add wasm32-wasi`\n- `cargo install cargo-generate`\n\nIf you don't have `spin` installed you can install it with\n\n```bash\ncurl -fsSL https://developer.fermyon.com/downloads/install.sh | bash\n```\n\nOnce you have the Spin CLI tool downloaded, we recommend putting the binary into a folder already on your path, eg\n\n```sh\nsudo mv spin /usr/local/bin/\n```\n\nFor the full [Spin CLI install instructions see here][spin-install].\n\n\u003cbr/\u003e\n\nTo generate your own repo from this starter template, run\n```sh\ncargo generate --git https://github.com/leptos-rs/start-spin\n```\n\nThen\n\n```sh\ncd {{project-name}}\n```\n\nto go to your newly created project.\n\n\u003cbr/\u003e\n\nFeel free to explore the project structure, but the best place to start with your application code is in `src/pages/home.rs`.\n\n\nAdditionally, 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 \u0026 Developing Your Project\n\nRunning\n```sh\nspin watch\n```\n\nwill build and run your server as well as recompile your code after making changes.\n\nUsing\n```sh\nspin up\n```\nwill build and serve your app on `127.0.0.1:3000` by default. To serve at a different address, use `spin up --listen \u003cADDRESS\u003e`.\n\n\n## Release and Deployment\n\nTo deploy your app to [Fermyon Cloud signup here first][spin-signup]. For more information on [Ferymon Cloud see here][spin-cloud-info].\n\nAfter you have your Fermyon cloud account and have logged in using `spin login`, running\n```sh\nspin build\n```\nwill build your application for release. Running\n\n```sh\nspin deploy\n```\nwill publish your app to Fermyon cloud.\n\nIf you would prefer to deploy your app on own machine or in a VM with Docker rather than on Fermyon Cloud, see [the Spin in Docker setup instructions here][docker-spin]. \n\n\u003cbr/\u003e\n\nIf you would like to deploy your Leptos-Spin app via Kubernetes, see [the setup instructions for Spin on Kubernetes here][k8s-spin].\n\n\n\n[leptos]: https://github.com/leptos-rs/leptos\n[spin-install]: https://developer.fermyon.com/spin/v2/install\n[spin-signup]: https://cloud.fermyon.com/\n[spin-cloud-info]: https://www.fermyon.com/cloud\n[docker-spin]: https://www.fermyon.com/blog/spin-in-docker\n[k8s-spin]: https://developer.fermyon.com/spin/v2/kubernetes\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleptos-rs%2Fstart-spin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleptos-rs%2Fstart-spin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleptos-rs%2Fstart-spin/lists"}