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]
- Host: GitHub
- URL: https://github.com/emarifer/axum-static-file-server-spa
- Owner: emarifer
- License: mit
- Created: 2023-05-25T09:13:51.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-27T19:43:05.000Z (almost 2 years ago)
- Last Synced: 2025-01-17T05:26:32.766Z (3 months ago)
- Topics: axum, axum-framework, axum-server, rust, solidjs, solidjs-router, spa, tailwindcss, typescript
- Language: Rust
- Homepage: https://axum-spa.onrender.com/
- Size: 149 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.