/node-ts-three-js-wasm

Node.js, TypeScript, Three.js, WASM Boilerplate

Primary LanguageTypeScriptMIT LicenseMIT

node-ts-three-js--hello-cube

Node.js, TypeScript, Three.js Boilerplate

Install

Install the node modules

npm i

Download and install Emscripten and set a the environment variable EMSDK to the installation directory (your/path/emsdk).

For example, on a Mac, add the following line to the ".zshrc" file in the user directory

export EMSDK="/Users/$USER/source/emscripten/emsdk"

Build

npm run build

Run

npm run start

Debug

npm run dev