This minimalist didactic application is written using the React-like Riot UI library:
- Written in ES6.
- Compiled using 6to5.
- Bundled with Webpack.
- Uses browser LocalStorage for persistence.
The app is a port of my Flux Backbone Todos Example and I wrote it to learn and evaluate Riot.
- Uses Riot UI library instead of React.
- Uses RiotControl (slightly modified) instead of the Flux dispatcher.
- Writes to browser LocalStorage directly instead of using Backbone.js.
Apart from that the application functionality and architecture is the same.
The app is developed and built in a node/npm environment. To install and run:
-
Make sure you have node and npm installed.
-
Clone the Github repo:
git clone https://github.com/srackham/riot-todo.git
-
Install npm dependencies:
cd riot-todo npm install
-
Build the app
dist/bundle.js
bundle:webpack
-
Start the app in a server:
npm start
-
Open your Web browser at http://localhost:8888/.