3 ms·
<script src="https://comments.network/comments.js"></script> https://comments.network/comments.js"></script> No need (for me). Recipe to roll your own comment
by bootload 10y ago
<script src="https://comments.network/comments.js"></script> https://comments.network/comments.js"></script>
No need (for me). Recipe to roll your own comments for your DIY blog:
- write your own templates, content and engine
- crack out your python/alt-language and download the HN News API https://github.com/HackerNews/API https://github.com/HackerNews/API for favs/stories posted
- find your firebase json repository https://hacker-news.firebaseio.com/v0/user/bootload.json?print=pretty https://hacker-news.firebaseio.com/v0/user/bootload.json?pri...
- download json posts by id. For example ^this post^ cf: https://hacker-news.firebaseio.com/v0/item/12904458.json?print=pretty https://hacker-news.firebaseio.com/v0/item/12904458.json?pri...
- parse and roll into your blog.
Wasn't that hard was it?
- franciscop 10y agoNot sure if serious or sarcastic. In case it's serious, you forgot: - Parse Hacker News from multiple sources because no one of them gives you all the information and correlate the info on each. - Add Reddit, Product Hunt, etc. Probably make it so that it's easy to implement on the back-end. Oh yeah you'll need a back-end because of the previous point. - Make some cache mechanism according to their robots.txt. - Optimize the assets. - Test it in different browsers + smartphones. Then that'd be rough outline of what I did (or plan on doing), so why repeat all the work when you just want a simple comment thread and not develop/maintain/host the solution yourself? PS, if you want to do it for learning, please go for it! You'll learn a lot for sure and if you contact me I can give you some tips.