Actix-web template that uses SvelteKit built and served as an embeded static files.
curl https://sh.rustup.rs -sSf | sh
cd client
npm run dev
cargo run
You can build the project with cargo. The build.rs
will automatically compile the frontend to static files in the ./client/build directory.
cargo build --release
Create service
sc.exe create "actix_example" binPath= "C:\Users\sfalcon\code\actix-svelte\target\release\actix-svelte.exe" type= own
Start Server
sc.exe start "actix_example"
Pause Server
sc.exe pause "actix_example"
Continue Server
sc.exe continue "actix_example"
Stop Actix Server
sc.exe stop "actix_example"
Delete Service
sc.exe delete "actix_example"