Skip to content

LexLuengas/yew-example-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

{
	"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

Releases

No releases published

Packages

No packages published

Languages