mirror of
https://github.com/Vale54321/schafkop-neu.git
synced 2025-12-15 19:29:34 +01:00
delete back and frontend
add schafkopf os add build firmware action
This commit is contained in:
27
schafkopf-os/README.md
Normal file
27
schafkopf-os/README.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# schafkopf-os — Test Frontend (Axum + Askama)
|
||||
|
||||
This crate serves a tiny test frontend using Axum + Askama and static assets.
|
||||
|
||||
## Run
|
||||
|
||||
```bash
|
||||
cargo run --manifest-path schafkopf-os/Cargo.toml
|
||||
```
|
||||
|
||||
Then open:
|
||||
|
||||
- http://127.0.0.1:3000 — server renders an Askama template
|
||||
- Click "Ping API" to call `GET /api/ping`
|
||||
|
||||
Or test the API directly:
|
||||
|
||||
```bash
|
||||
curl -s http://127.0.0.1:3000/api/ping | jq
|
||||
```
|
||||
|
||||
## Structure
|
||||
|
||||
- `src/main.rs` — Axum server with routes `/` and `/api/ping`, and static files at `/static`
|
||||
- `templates/index.html` — Askama template for the homepage
|
||||
- `static/styles.css` — Minimal styling
|
||||
- `static/app.js` — Browser script to call the ping API
|
||||
Reference in New Issue
Block a user