Live data from Hacker News

Show HN: Angular 2 HN – A progressive Hacker News client that works offline

github.com

11–20 of 48 posts

Re: Show HN: Angular 2 HN – A progressive Hacker News client that works offline

#12

Earlier quoted context omitted.

Thank you :) The CLI is just a command line interface that makes scaffolding and generating a project a lot easier. Adding new components, routes, services, etc... can be done with simple commands. Angular seed gives you a skeleton that you can start your app with, and the quick start provides a super barebones starting point with just a single AppComponent if I'm not mistaken. I personally enjoy using the CLI and ha…

oh the blog post would be perfect!, I will go through it. I will try to create a twitter client to get familiar with angular cli and angular 2 in general. Thanks :) Btw, I like the way blog UI and its simplicity and code-display friendly-ness, what tool/app you use for the blog? (if you don't mind sharing the details)

Of course! So the blog itself is built with Jekyll (https://jekyllrb.com/) and hosted on Github Pages. This makes it easy for me to just create new posts with markdown and GitHub pages provides free hosting!

I tried to keep things as minimal as possible so I'm glad you like it. For the code highlighting, I'm using Prism (http://prismjs.com/index.html)

Re: Show HN: Angular 2 HN – A progressive Hacker News client that works offline

#13
post #11

It's annoying how it scrolls to the top of the page when when you go back from article.

Thanks for this, I was actually thinking about this when I was playing around with the app on mobile today. Might have to limit the scroll to top only when the user is navigating between pages and not when the user goes back.

Re: Show HN: Angular 2 HN – A progressive Hacker News client that works offline

#14

Earlier quoted context omitted.

oh the blog post would be perfect!, I will go through it. I will try to create a twitter client to get familiar with angular cli and angular 2 in general. Thanks :) Btw, I like the way blog UI and its simplicity and code-display friendly-ness, what tool/app you use for the blog? (if you don't mind sharing the details)

Of course! So the blog itself is built with Jekyll ( https://jekyllrb.com/ ) and hosted on Github Pages. This makes it easy for me to just create new posts with markdown and GitHub pages provides free hosting! I tried to keep things as minimal as possible so I'm glad you like it. For the code highlighting, I'm using Prism ( http://prismjs.com/index.html )

Super!

Re: Show HN: Angular 2 HN – A progressive Hacker News client that works offline

#16

Cool, I was just getting started with Angular 2 and Typescript (coming from Angular 1) and I think your example is just the perfect way to understand how an app is to be made with it :) How is angular-cli different from angular's quick start or a seed project setup ?

Thank you :) The CLI is just a command line interface that makes scaffolding and generating a project a lot easier. Adding new components, routes, services, etc... can be done with simple commands. Angular seed gives you a skeleton that you can start your app with, and the quick start provides a super barebones starting point with just a single AppComponent if I'm not mistaken. I personally enjoy using the CLI and ha…

Not sure if you've used this but it sounds like Angular CLI is very similar to Yeoman in terms of guided app generation.

That blog post is very good BTW. I like how it goes through all of the intermediate steps that any developer would do to make a PoC.

Re: Show HN: Angular 2 HN – A progressive Hacker News client that works offline

#17

Shameless plug. I built a native Mac Hacker News client. Mackernews. http://mackernews.com you can login vote, comment, post, upvote in a native interface. It tries to render a reable web version of the article when possible :)

Cool, there a bunch of clients available but not too many that let you login and comment/upvote/etc. Thanks for sharing!

Re: Show HN: Angular 2 HN – A progressive Hacker News client that works offline

#18
This looks good !

btw I am trying to learn service workers and wanted to check how you have implemented the offline support, but when I checked

https://github.com/hdjirdeh/angular2-hn/blob/master/src/serv... it's empty .. am I missing something ?

Re: Show HN: Angular 2 HN – A progressive Hacker News client that works offline

#19
post #18

This looks good ! btw I am trying to learn service workers and wanted to check how you have implemented the offline support, but when I checked https://github.com/hdjirdeh/angular2-hn/blob/master/src/serv... it's empty .. am I missing something ?

It's using a library to generate one on the fly: https://github.com/GoogleChrome/sw-precache

Re: Show HN: Angular 2 HN – A progressive Hacker News client that works offline

#20
Firstly, I love your app.

This is kind of a nitpick, but on the desktop version, hovering over the menu options "new, show, ask, and jobs" makes the text bold and pushes the other text aside. It's a little weird. Perhaps work with a fixed width for each menu item so it doesn't push the other items.

Post reply on HN