angular2-hn

:boom: Progressive Hacker News client built with Angular

Github星跟踪图


:zap: Fast: Service Worker App Shell + Dynamic Content model to achieve faster load times with and without a network.

:iphone: Responsive: Completely responsive UI that can be installed to your mobile home screen to provide a native feel.

:rocket: Progressive: Lighthouse score of 87/100.

Mobile Preview

Laptop Preview

Offline Support

This app uses Workbox to generate a service worker as part of the build step to load quickly and work offline.

Manifest

With Chromium based browsers for Android (Chrome, Opera, etc...), Angular 2 HN includes a Web App Manifest that allows you to install to your homescreen.

Themes

Built in theme engine!

Current themes:

  • Default
  • Night
  • Black (AMOLED)

More to come!

Areas of improvement

  • Realtime updating using the Firebase SDK (may need to add option to settings so service worker can still rely on REST endpoints)
  • Server side rendering

Feel free to send me feedback on twitter or file an issue! Feature requests are always welcome.

Build process

Note: This project has been ejected (with AOT + production settings) in order to customize Webpack configurations.

  • Clone or download the repo
  • npm install
  • npm start to run the application with webpack-dev-server or npm build to kick off a fresh build and update the output directory (dist/)

Note: Any Service Worker changes will not be reflected when you run the application locally in development. To test service worker changes:

  • npm build
  • npm run precache to generate the service worker file
  • npm run static-serve to load the application along with the service worker asset using live-server

Contributors

A million thanks to some awesome people :)

主要指标

概览
名称与所有者housseindjirdeh/angular2-hn
主编程语言TypeScript
编程语言TypeScript (语言数: 4)
平台
许可证MIT License
所有者活动
创建于2016-09-03 05:37:07
推送于2023-01-05 07:16:09
最后一次提交2020-06-25 16:06:11
发布数0
用户参与
星数1.3k
关注者数52
派生数228
提交数181
已启用问题?
问题数44
打开的问题数8
拉请求数39
打开的拉请求数22
关闭的拉请求数13
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?