actix-svelte Svelte Themes

Actix Svelte

Actix server serving a SSG Svelte app

Actix Svelte Template

Actix-web template that uses SvelteKit built and served as an embeded static files.

Features

Setup

Dev Requirements

Debug

Frontend

cd client
npm run dev

Backend

cargo run

Build

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

Windows Service

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"

Top categories

Loading Svelte Themes