/riot-app-example

Simple riotjs isomorphic app

Primary LanguageJavaScript

Simple isomorphic riot app

Philosophy

Use mostly your mind and only the tools your app really needs: riot allows you doing both things!

Info

This app is really simple and it may not be perfect because I have coded it in a couple of days but it's enough to answer to the following FAQ:

  • How can I render riot components on the server?
  • How can I dispatch events across several riot components?
  • How can I store/manage my data state?
  • How can I share the same router paths on the client and on the server?
  • How can I create a bundle file building my riot tags for my production app?
  • How can I use es6/babel with my riot tags?

Setup

$ npm install

Run

$ npm start

Develop

$ npm run watch # watch the client js files
$ npm run watch-server # watch the server js files