Skip to content

txchen/riot-hn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hackernews by Riotjs

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

Building and running

  1. Make sure node and npm are installed

  2. Clone the repo:

git clone https://github.com/txchen/riot-hn.git
  1. Install npm dependencies:
cd riot-hn
npm install
  1. Start to develop, it would watch the source code and auto rebuild.
npm run dev
  1. Open your browser at http://127.0.0.1:9090

  2. Or manually run the build, the output will be generated in ./build folder

npm run build

Releases

No releases published

Packages

No packages published