Skip to content

quaternionmedia/meiosis-cookiecutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Meiosis Cookiecutter

Cookiecutter template for a Meiosis project, using Mithril.js, TypeScript, and Vite.

Usage

Cookiecutter

Install cookiecutter and generate the template:

pip install cookiecutter
cookiecutter gh:quaternionmedia/meiosis-cookiecutter

Install dependencies:

cd <project_name>
npm install

Run the development server:

npm run dev

Vist localhost:1234 in your browser.

Development

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!'),
}

Documentation

For details on how to use Meiosis, check out the Meiosis documentation.

About

Template for a Meiosis pattern application using Mithril

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published