An open API service indexing awesome lists of open source software.

https://github.com/emarifer/axum-static-file-server-spa

Axum Static File Server + SPA [Full-stack App: Rust&Axum/TypeScript&Solidjs]
https://github.com/emarifer/axum-static-file-server-spa

axum axum-framework axum-server rust solidjs solidjs-router spa tailwindcss typescript

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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:

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

To run the server (in development mode):

```bash
$ 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:

```bash
$ cargo build --release
```

Runs the app in the development mode.

Open [http://localhost:8080/api/healthchecker](http://localhost:8080/api/healthchecker) to view it in the browser.