Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lexluengas/yew-example-app
Rust client-side app using the Yew web framework
https://github.com/lexluengas/yew-example-app
example rust single-page-application spa wasm webassembly yew
Last synced: 1 day ago
JSON representation
Rust client-side app using the Yew web framework
- Host: GitHub
- URL: https://github.com/lexluengas/yew-example-app
- Owner: LexLuengas
- Created: 2019-01-12T11:22:14.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-25T14:32:22.000Z (almost 6 years ago)
- Last Synced: 2024-12-01T20:12:05.184Z (2 months ago)
- Topics: example, rust, single-page-application, spa, wasm, webassembly, yew
- Language: Rust
- Size: 280 MB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WebAssembly Single-Page Application
A very basic Single-Page Application (SPA) written in Rust with the Yew web framework. It makes requests to the Twitter Search API by a set of user-specified keywords and displays the results in a table.
The architecture is based on Henry Zimmerman's WeekendAtJoes4 SPA (https://github.com/hgzimmerman/WeekendAtJoes4).
## Setup
Add a file *api/twitter_config.json* containing some valid Twitter API tokens, e.g.
```json
{
"consumer_key": "...",
"consumer_secret": "...",
"access_token": "...",
"access_token_secret": "..."
}
```## Run locally
Simply run `start.sh` to start the API server along with the cargo-web server.
To run the server or the app for themselves:
* Server: `node api/server.js`
* SPA: `cd wasm-spa/app/ && cargo web start --auto-reload`