/browserify-calculator

Demo for tutorial

Primary LanguageJavaScript

browserify-calculator

Demo for tutorial

  1. NPM init

  2. Create index.html

  3. Creat a main.js, npm install underscore and require it in main.js. Do something cool.

  4. Run browserify cli to create the bundle.js file, link it in the index.html and test it out.

  5. Create some modules

  6. Require the modules, do some stuff and then log it to the console. This is easy.

  7. Make a module that uses an npm installed module (eg jq) and use it in our calculator