stevenarella/www
ice_iix 852624f68a www: npm audit fix, closes #300, closes #324 2020-06-20 11:58:36 -07:00
..
.gitignore Add support for compiling WebAssembly wasm32-unknown-unknown target (#92) 2019-03-03 08:32:36 -08:00
README.md www: update README to remove wasm-pack; use cargo web start 2020-02-02 09:07:51 -08:00
bootstrap.js Add support for compiling WebAssembly wasm32-unknown-unknown target (#92) 2019-03-03 08:32:36 -08:00
index.html Add support for compiling WebAssembly wasm32-unknown-unknown target (#92) 2019-03-03 08:32:36 -08:00
index.js Add support for compiling WebAssembly wasm32-unknown-unknown target (#92) 2019-03-03 08:32:36 -08:00
package-lock.json www: npm audit fix, closes #300, closes #324 2020-06-20 11:58:36 -07:00
package.json www: npm audit fix, closes #300, closes #324 2020-06-20 11:58:36 -07:00
webpack.config.js Add support for compiling WebAssembly wasm32-unknown-unknown target (#92) 2019-03-03 08:32:36 -08:00

README.md

stevenarella-web

Web app for running Stevenarella as WebAssembly

Status: very incomplete. It does not currently compile, due to required modifications to adapt to the web, for progress see: https://github.com/iceiix/stevenarella/issues/171.

Building

To build for wasm32-unknown-unknown, run:

cargo web start --target wasm32-unknown-unknown

Running

After building the Rust app, run the NodeJS web server as follows:

cd pkg
npm link
cd ..
cd www
npm link stevenarella
npm install
npm start
open http://localhost:8080/

Credits

Based on rustwasm/create-wasm-app:

An npm init template for kick starting a project that uses NPM packages containing Rust-generated WebAssembly and bundles them with Webpack.