https://github.com/kyleect/rust-backend-web-frontend
A backend API powered by rust. A frontend web app packed in to the backend's binary. One file to run.
https://github.com/kyleect/rust-backend-web-frontend
Last synced: 8 months ago
JSON representation
A backend API powered by rust. A frontend web app packed in to the backend's binary. One file to run.
- Host: GitHub
- URL: https://github.com/kyleect/rust-backend-web-frontend
- Owner: kyleect
- License: mit
- Created: 2025-03-24T01:10:17.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-28T21:20:23.000Z (11 months ago)
- Last Synced: 2025-06-23T21:41:39.359Z (9 months ago)
- Language: TypeScript
- Size: 155 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rust-backend-web-frontend
[](https://github.com/kyleect/rust-backend-web-frontend/actions/workflows/build-artifacts.yml)
Template for a backend API in Rust statically serving a frontend in React.
## Getting Started
See [DEVELOPMENT.md](./DEVELOPMENT.md) for instructions on how to set up the project.
## Ideal For
- Development or testing tools
## Not Ideal For
- Most consumer apps where user friendliness is priority
## Stack
- **Backend:** Rust, Axum, Tokio
- **Frontend:** Typescript, React, Tanstack Router
## Features
- Produces a tiny single binary
- Backend for frontend provides encapsulation. There is no server side rendering
- No CORS headers required
- Shared types between backend and frontend (Rust -> Typescript type generation)
- Development mode (hot-reloading client, recompiling server & types)
- Tracing/logging in server
- E2E tests provided by Playwright
## Todo
- [ ] SQLite support (controlled with Cargo feature)