Install browserify:
npm install browserify -g
Install http-server for development/testing
npm install http-server -g
Install gulp:
npm install gulp-cli -g
npm install
http-server
or
gulp connect
Before create a .env
file with proper configurations for mqtt and authentication/authorization. See .env_template
for example. See https://github.com/dwyl/env2 for general explanation on env2 library.
During gulp configure
thask .env variable values are substitutes in js files, for proper configuration.
gulp
gulp dev
gulp && gulp zip
jsdoc -c .\conf.json
Reading files in JavaScript using the File APIs
Styling & Customizing File Inputs the Smart Way (NO MORE USED). Now used .env mechanism.