https://github.com/txchen/riot-hn
hackernews by riotjs
https://github.com/txchen/riot-hn
Last synced: about 1 year ago
JSON representation
hackernews by riotjs
- Host: GitHub
- URL: https://github.com/txchen/riot-hn
- Owner: txchen
- License: mit
- Created: 2015-02-11T01:12:29.000Z (over 11 years ago)
- Default Branch: gh-pages
- Last Pushed: 2016-02-29T04:33:47.000Z (over 10 years ago)
- Last Synced: 2025-04-27T11:02:36.620Z (about 1 year ago)
- Language: HTML
- Homepage: http://git.io/riot-hn
- Size: 585 KB
- Stars: 53
- Watchers: 6
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Hackernews by Riotjs
This is a simple hackernews app implemented by [RiotJs](https://muut.com/riotjs/), it uses official hackernews api provided by firebase.
This app is converted from vuejs' [example](http://vuejs.org/examples/hackernews.html), 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
```
3. Install npm dependencies:
```bash
cd riot-hn
npm install
```
4. Start to develop, it would watch the source code and auto rebuild.
```bash
npm run dev
```
5. Open your browser at http://127.0.0.1:9090
6. Or manually run the build, the output will be generated in ./build folder
```bash
npm run build
```