Workshop and example of architecture with testable, maintainable, decoupled components written in ES6.
Can be used as a starter for an ecommerce client app.
Presentation: http://slides.com/andreipreda/js-architecture-workshop
-
Basic shopping cart application writen in JavaScript ES6 that uses React and Baobab although the architecture described can be framework independent
-
Unit tests with example testing a React component using jsdom and cheerio on mocha
-
Documented code example
Assuming you have node.js, npm, gulp & mocha (globally installed), from the project directory run:
From the project directory:
npm install
npm test
gulp compiled
gulp webserver
Build docs using esdoc
From the project directory:
npm install -g esdoc
esdoc -c esdoc.json
open ./esdoc/index.html
MIT