Demo from class. Includes: browserify, grunt, and firebase calls.
- Load data
- Display items on page utilizing browserify and ES6 template strings
- Setup basic files and folder structure: index.html, sass/main.scss, css, dist, images, javascripts/main.js
- Install Browserify
- Setup Gruntfile
- link app.js to the index.html
- Start server and run grunt - make sure everything is working.
- Review json file
- Import Firebase
- Goal: Display each item in a card with click functionality.
- Start
index.html
main.js
: Add requiresmain.js
: Create method to load inventoryfetch-bakery.js
: Handles data. Create promise for load data and parse.fetch-bakery.js
: Export methodsmodule.exports = bakery;
main.js
: Create method to populate page - how about a templatecake-grid.js
: Add tomain.js
require