Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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.

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
```