Skip to content

mdxprograms/mithril-starter

Repository files navigation

Mithril Starter

mithriljs

Up and running

nvm use

npm i

Dev

npm start

Build

npm run build

App structure

src
├── components
│   └── Nav.js
├── index.html
├── index.js
├── models
│   └── User.js
├── router.js
└── views
    ├── HomeView.js
    ├── Layout.js
    └── UserView.js
* components - (examples: Nav, Footer, UserList)
* models - (Model/State => examples: User, Article)
* views - (Main pages => examples: HomeView, UsersView)