Skip to content

Axum Static File Server + SPA [Full-stack App: Rust&Axum/TypeScript&Solidjs]

License

Notifications You must be signed in to change notification settings

emarifer/axum-static-file-server-spa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Axum Static File Server + SPA [Full-stack app: Rust&Axum/TypeScript&Solidjs]

Full-stack SPA demo using Solidjs, TypeScript, and Tailwindcss. Backend by Rust with Axum.

First, you need to compile the frontend:

$ pnpm build  #(you need to have Nodejs and pnpm (or yarn) installed)

To run the server (in development mode):

$ cargo run # or cargo watch -q -c -w src/ -x run (cargo-watch must be installed on the system)

The page will reload if you make edits (with watch mode) 😀.

To build the project for production and minimize its size:

$ cargo build --release

Runs the app in the development mode.
Open http://localhost:8080/api/healthchecker to view it in the browser.