Skip to content

Latest commit

 

History

History
58 lines (40 loc) · 1.11 KB

README.md

File metadata and controls

58 lines (40 loc) · 1.11 KB

Web Application Server - yew

Demo site: https://blog2.ruonou.com

Build & Run:

git clone https://github.com/zzy/surfer.git
cd surfer
cargo build

cd frontend-yew

Rename file .env.toml.example to .env.toml, or put the environment variables into a .env.toml file:

[site]
title = "<your site's title>"

[gql]
addr = "http://127.0.0.1:8000" # for local test
path = "gql/v1"

[theme_mode]
title = "<your theme title>"
svg = "<your theme svg>"

[i18n]
title = "<your i18n title>"
href = "#"
svg = "<your i18n svg>"

[github]
title = "<your github title>"
href = "//github.com/zzy/surfer"
svg = "<your github svg>"

About GraphQL API and MongoDB data, read surfer's intro or surfer/backend.

And then,

cargo install trunk wasm-bindgen-cli

trunk build
trunk serve --release

Then connect to http://127.0.0.1:3001 with browser.

Client Image

See also: https://github.com/zzy/tide-async-graphql-mongodb/tree/main/frontend-yew

Contributing

You are welcome in contributing to this project.