Starting project template for Rust Axum backend and Svelte frontend
Starting project template for Rust Axum backend and Svelte frontend
Starting project template for Rust Axum backend and Svelte frontend. Simple Single-Page-App (SPA) example. Does not use SvelteKit.
axum-sessions to tower-sessions see pr#14axum to 0.6.20, axum-sessions to 0.5, tower-http to 0.4vite-plugin-svelte to 2.4.2, svelte to 4.0.5, vite to 4.4.5tower-http for serving front end static assetsaxum 0.6axum::extract::RequestParts with help from update on axum-sessionsaxum-sessions 0.4 to matchtokio version to 1.24axum 0.5 version is kept under branch v0.3_Axum0.5cargo install cargo-generatecargo generate jbertovic/svelte-axum-project -n --template option./back_endNote there is no persistance beyond what's held in memory while the application is running
run as cargo run from parent directory and not needed to run inside ./back_end folder
./front_endrun as npm run build from inside the ./front_end directory to build the static serve file directory.
Install the following NodeJs - Install Rust - Install
Clone the repository
./front_end folder run npm install to download all module dependencies inside root directory of project./front_end folder run npm run build to bundle the js/svelte code into public foldercargo run to start the the serverIn case you need to build both at once and use Linux, run ./build-fullstack.sh
No open issues yet, or sync has not completed.