emarifer / axum-static-file-server-spa

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

Home Page:https://axum-spa.onrender.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

https://axum-spa.onrender.com/

License:MIT License


Languages

Language:Rust 49.1%Language:TypeScript 44.5%Language:HTML 2.8%Language:JavaScript 2.2%Language:CSS 1.4%