Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.17 KB

README.md

File metadata and controls

45 lines (30 loc) · 1.17 KB

mithril-framework

A simple Mithril application using ES6 modules for structure and future compatibility. All code is compiled to be ES5 compatible using Browserify and Babel.

Example

An example can be viewed at http://dolfelt.github.io/mithril-framework/

Installing

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.

Challenges

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.

Contributing

Contribute at will! 👍