Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Svelte on Rust starter template

License

NotificationsYou must be signed in to change notification settings

sachinbhutani/svelte-on-rust

Repository files navigation

Starter template forSvelte frontend apps with RustRocket backend server.

Requirements

NodeJs -Install

Rust -Install

Rust Nightly for the project folder

Get started

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.

Building and running in production mode

To create an optimised version of the app:

npm run buildcargo build

Built With

Rocket

Svelte

YRV

Vite

Change Log

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

Stars

Watchers

Forks

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp