This is a simple hackernews app implemented by RiotJs, it uses official hackernews api provided by firebase.
This app is converted from vuejs' example, to show that riotjs can also complete such task.
Features:
- use npm and script as dev work flow, no gulp or grunt.
- organize the code into views and components.
- use browserify to pack all the js files into one single output.
- support source map so that debugger in browser can be used.
- use riot's native routing feature.
Online demo: http://git.io/riot-hn
-
Make sure node and npm are installed
-
Clone the repo:
git clone https://github.com/txchen/riot-hn.git
- Install npm dependencies:
cd riot-hn
npm install
- Start to develop, it would watch the source code and auto rebuild.
npm run dev
-
Open your browser at http://127.0.0.1:9090
-
Or manually run the build, the output will be generated in ./build folder
npm run build