- Installed Node.JS v11
- Installed Python
- Installed Micro controller driver
- (optional) Espruino IDE
- Cloned repository
- esptool (can be installed via python's pip)
Having brew installed:
# Note: python and git should be pre-installed on macOS
# If not:
brew install python
brew install n
n latest
pip install esptool
Having chocolatey installed:
choco install git
choco install python2
choco install nodejs
pip install esptool
npm install --global --production windows-build-tools
npm config set msvs_version 2015 --global
cd device
npm install
npm run device:flash
npm run espruino:reset
- Settings -> Communications -> Baud rate: 115200
- Connect to
/dev/cu.SLAB_USBtoUART
orCOM#
Paste the following code in the left editor pane:
const LED = NodeMCU.D4;
let on = false;
setInterval(function() {
on = !on;
LED.write(on);
}, 500);
Upload the code and the blue LED indicator should blink.
Run the following in a console, to create a serial connection that uploads the code to the micro controller:
npm run espruino:console
Now use another terminal to build to backend:
# Build once...
npm run build
# ... or keep build task in watch mode
npm run build:watch
Use a different terminal for running the frontend:
cd <project>/web-ui
npm install
npm start