Cookiecutter template for a Meiosis project, using Mithril.js, TypeScript, and Vite.
Install cookiecutter and generate the template:
pip install cookiecutter
cookiecutter gh:quaternionmedia/meiosis-cookiecutter
cd <project_name>
npm install
npm run dev
Vist localhost:1234 in your browser.
Add you Mithril app to app/index.ts
export interface State {
// Your state types here
}
export const App = {
initial: {
// Your initial state here
},
services: [
// Services that run on state changes
],
// Your application view here
view: cell => m('h1', 'Hello, world!'),
}
For details on how to use Meiosis, check out the Meiosis documentation.