Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 807 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 807 Bytes

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