- Notifications
You must be signed in to change notification settings - Fork7
Svelte on Rust starter template
License
sachinbhutani/svelte-on-rust
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Starter template forSvelte frontend apps with RustRocket backend server.
NodeJs -Install
Rust -Install
Rust Nightly for the project folder
Create a new project based on this template usingdegit andinstall the dependencies...
npx degit sachinbhutani/svelte-on-rust svelte-rocketcd svelte-rocketnpm install...then start Rocket server andVite in two different terminals
Terminal 1: (To run the rust server)
cargo run
Terminal 2: (To build and hot reload svelte components)
npm run dev
Navigate tolocalhost:8000. You should see your app running.All svelte component live inclient directory. Save any changes live-reloading.All Rocket code lives insrc directory. To rebuild Rust code use cargo run after saving your changes.All static files are served frompublic direcotry. Including the JS code compiled by Svelte Compiler.
To create an optimised version of the app:
npm run buildcargo build
v0.2.0: Complete Rewrite
- upgraded to rust stable
- upgraded to new svelte version
- removed rollup, using vite now
- removed bulma, pure css only.
v0.1.4: update packages becausecargo run failed
v0.1.3: Added authentication example with private cookies
v0.1.2: Added Bulma CSS styling
About
Svelte on Rust starter template
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.