Commit Graph

17 Commits

Author SHA1 Message Date
Robert Webb
f5e38cbd70 Added a sample test using supertest, axios, and sinon.
It does not past but I can confirm it does call the api!
2019-02-17 20:20:31 -08:00
Robert Webb
0c05f3d357 Fixed some more linting
Removed eslint errors related to the after variable being undefined.
2019-02-17 19:58:20 -08:00
notnull
98adc24389 separated api path from main path 2019-02-15 17:59:55 -05:00
24ae647142 adding a comment backend, experimenting with static html frontend (plus bash) 2019-02-14 08:59:14 -08:00
df2afd36e2 F 2019-02-13 14:28:27 -08:00
26524549c1 Merge branch 'master' of ssh://irc.anarchyplanet.org:2222/notnull/hacker-news-cli 2019-02-13 08:13:08 -08:00
8db4e1ef54 added votes 2019-02-13 08:08:41 -08:00
notnull
284be0ecdd added models for comment and user; added .eslintrc and .prettierrc 2019-02-13 11:07:11 -05:00
10091f28ff Merge branch 'master' of totally_not_fb/hacker-news-cli into master 2019-02-12 01:12:54 -08:00
Robert Webb
3f8e8479d0 Added linting to the project 2019-02-10 16:07:09 -08:00
ed33f010d5 added /api/robots 2019-02-08 06:58:09 -08:00
notnull
2ac6cc2ff2 added seed, and a template for serving the html 2019-02-07 20:59:24 -08:00
notnull
1a2a77beca updated readme 2019-02-07 18:55:15 -08:00
notnull
9e90002113 added database and express server 2019-02-07 18:47:35 -08:00
8b89ec32f1 Merge branch 'master' of totally_not_fb/hacker-news-cli into master 2019-02-06 19:39:03 -08:00
Robert Webb
a108d90a3d Added sample code for querying the HN API in node. I used node because it takes me much less time but many other languages would work. I wanted to demonstrate the ease of hackernews API.
In order to use, install node.
Run npm install in the repo to generate the node_modules folder.
run node index.js
You should see the HN top stories logged out.
2019-02-01 23:32:17 -08:00
notnull
e224e68ca2 first commit 2019-01-28 03:40:09 -05:00