Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rksm/axum-yew-template
A cargo-template for generating a full stack axum / yew web app.
https://github.com/rksm/axum-yew-template
axum cargo-generate rust server wasm yew
Last synced: 3 months ago
JSON representation
A cargo-template for generating a full stack axum / yew web app.
- Host: GitHub
- URL: https://github.com/rksm/axum-yew-template
- Owner: rksm
- License: mit
- Created: 2022-04-04T02:02:28.000Z (over 2 years ago)
- Default Branch: template
- Last Pushed: 2023-09-04T14:10:19.000Z (over 1 year ago)
- Last Synced: 2024-05-02T06:03:56.978Z (8 months ago)
- Topics: axum, cargo-generate, rust, server, wasm, yew
- Language: Rust
- Homepage:
- Size: 61.5 KB
- Stars: 11
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
_This is a template for [cargo-generate](https://cargo-generate.github.io/cargo-generate/)._
_Use with `cargo generate rksm/axum-yew-template`._# {{project-name}}
This is a full stack Rust web app using [axum](https://github.com/tokio-rs/axum) and [yew](https://yew.rs/).
## Usage
Run the dev version (auto-reloads server & client on file change) with `./dev.sh`.
Run the pre-compiled version with `./prod.sh`.
The app will start at http://localhost:8080 by default. You can modify that by changing the flags passed to the server binary:
```
Usage: server [OPTIONS]Options:
-l, --log set the log level [default: debug]
-a, --addr set the listen addr [default: ::1]
-p, --port set the listen port [default: 8080]
--static-dir set the directory where static files are to be found [default: ../dist]
-h, --help Print help
```