A simple, example app for Angular using es6, mobx and flux. It uses open punkapi to retrieve beer information and display them to the user.
- Webpack reasonable default config.
- Good use of Angular components as from 1.5 see
- Beautiful css theme using the wing.css
- ES6, and ES7 support with babel.
- Source maps included in all builds.
- Development server with live reload.
- No gulp and no grunt, just npm scripts.
- node
^4.5.0
- yarn
^0.17.0
or npm^3.0.0
Install dependencies and check to see it works.
It is recommended that you use Yarn
for deterministic installs, but npm install
will work just as well.
$ yarn install # Install project dependencies
$ yarn start # Compile and launch (same as `npm start`)
- It uses vanilla Flux architecture;
- It parses Punkapi's beer API see;
- It uses vanilla Mobx architecture;
- Stores do not emit events. Instead all state changes are managed via observable actions;
- In the component controller we utilize the Angular 1.5 (lifecycle hooks)[https://docs.angularjs.org/guide/component] to register with autorun and de-register onDestroy.
- It is is built in ES6 using Babel and Webpack.
See and run the source to see it in action!