{"repo":"leptos-rs/start-axum","free":true,"listed":false,"github":"https://github.com/leptos-rs/start-axum","clone":"git clone https://github.com/leptos-rs/start-axum.git","description":"Starter template for use with Leptos 0.8 and Axum.","language":"Rust","stars":85,"topics":[],"license":"Unlicense","category":"saas-starters-boilerplates","readme_excerpt":"Leptos Axum Starter Template This is a template for use with the Leptos web framework and the cargo-leptos tool using Axum. Creating your template repo If you don't have cargo-leptos installed you can install it with Then run to generate a new project template. to go to your newly created project. Feel free to explore the project structure, but the best place to start with your application code is in src/app.rs . Additionally, Cargo.toml may need updating as new versions of the dependencies are released, especially if things are not working after a cargo update . Running your project Installing Additional Tools By 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. 1. rustup toolchain install nightly --allow-downgrade - make sure you have Rust nightly 2. rustup target add wasm32-unknown-unknown - add the ability to compile Rust to WebAssembly 3. cargo install cargo-generate - install cargo-generate binary (should be installed automatically in future) 4. npm install -g sass - install dart-sass (should be optional in future 5. Run npm install in end2end subdirectory before test Compiling for Release Will generate your server binary in target/release and your site package in target/site Testing Your Project Cargo-leptos uses Playwright as the end-to-end test tool. Tests are located in end2end/tests directory. Executing a Server on a Remote Machine Without the Toolchain After running","default_branch":null,"files":null,"tree":[],"storefront":"/r/leptos-rs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/leptos-rs/start-axum/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}