Download the Double Pendulam library.
In Cargo.toml
file, in dependencies section, edit the path of double-pendulum
to the downloaded relative location of the library.
The Double Pendulum library has now been added as an Cargo dependency, so you don't need to manually download it.
-
Make sure that you have installed
wasm-pack
, if not, you can install it usingcargo install wasm-pack
. -
Next, build the
dp-vis
library usingwasm-pack build
. -
Make sure that you've Node.js installed, if not install it.
-
Now, cd into
/www/
directory and runnpm run start
command, and voila! You're done!