A simple Mithril application using ES6 modules for structure and future compatibility. All code is compiled to be ES5 compatible using Browserify and Babel.
An example can be viewed at http://dolfelt.github.io/mithril-framework/
To begin, install the NPM dependencies.
npm install -g gulp
npm install
Rename config.example.js
to config.js
and change any values as necessary.
cp config.example.js config.js
Then run the following to serve the application.
gulp serve
This will compile all the code an start a local web service. Visit http://localhost:8080 in your browser.
This is an example application attempting to structure Mithril, or any micro JS framework, into a large single-page application that scales.
Challenges include:
- Determining global state and configuration (FLUX-like).
- Storing data models and forming relationships. Most likely using js-data.
- Accommodating complex UI/UX designs.
Contribute at will! 👍