Skip to content

dolfelt/mithril-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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! 👍

About

Simple app structure using Mithril, ES6, and Browserify.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published