410 karma · joined September 6, 2016
Here's an excellent article btw that helped me understand how to set up sw-precache with an Angular CLI app (https://coryrylan.com/blog/fast-offline-angular-apps-with-se...)
And thank you, I appreciate it! I tried my best to flush out every single step I had to go through while building the app so I'm glad you liked it.
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)
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 haven't tried the seed myself. If you're interested in how I set up this app, I wrote a blog post (http://houssein.me/angular2-hacker-news) detailing each and every step using the CLI so I hope it helps :) (this was done a few months ago so the progressive elements such as the Service Worker and manifest isn't included)
It was my intention to have people follow along step by step, so I apologize for having some unnecessary complexity in the middle that sort of stopped you from following along. I'll try and update my post around this area to make it a little more streamlined. I felt like these points weren't really necessary to mention as I omit them once I begin to use the unofficial API. But my apologies, I should have addressed this better.
Put a note in my post in case anyone else experiences this issue.
As always, I hope you find it useful and would appreciate any feedback.
Not to mention that requests now get cached :)
And thanks so much for spotting that, will fix that up.
On Safari I don't see any requests and clicking add story or Reddit does nothing :(
Appreciate all the feedback folks. I'll be updating the post pages in the next few days to do the same to make this app substantially faster.
One other thing I noticed is that stories don't seem to load on my iPhone, but works fine on browser. Not sure why though.
Thanks for the suggestion. I'll consider delaying the loading behaviour so it doesn't show all the time when the app is performing normally.
But as someone already mentioned here, there definitely is some work that needs to be done to speed up the requests in general. There's quite a large transfer that happens on every page because of the way I load each item individually. I'll have to find a way to speed that up.
I wanted to build one with a responsive UI that would provide a `native` feel regardless of which device you use. Decided to use Angular CLI, RxJS and Webpack to do the job.
There are definitely areas of improvement and I would love some feedback :)