{"id":19856836,"url":"https://github.com/polymer/pwa-starter-kit-hn","last_synced_at":"2025-05-02T02:30:24.602Z","repository":{"id":28252561,"uuid":"112521132","full_name":"Polymer/pwa-starter-kit-hn","owner":"Polymer","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-26T04:28:55.000Z","size":2746,"stargazers_count":69,"open_issues_count":22,"forks_count":17,"subscribers_count":25,"default_branch":"master","last_synced_at":"2024-05-19T03:12:56.656Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pwa-starter-kit-hn.appspot.com/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Polymer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-29T19:55:35.000Z","updated_at":"2024-05-16T22:14:51.000Z","dependencies_parsed_at":"2023-02-14T14:15:33.253Z","dependency_job_id":"24199b9c-02c5-4a3a-8d71-9d29e54bd1fe","html_url":"https://github.com/Polymer/pwa-starter-kit-hn","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polymer%2Fpwa-starter-kit-hn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polymer%2Fpwa-starter-kit-hn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polymer%2Fpwa-starter-kit-hn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polymer%2Fpwa-starter-kit-hn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Polymer","download_url":"https://codeload.github.com/Polymer/pwa-starter-kit-hn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251972401,"owners_count":21673599,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T14:16:44.040Z","updated_at":"2025-05-02T02:30:24.217Z","avatar_url":"https://github.com/Polymer.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Built with pwa–starter–kit](https://img.shields.io/badge/built_with-pwa–starter–kit_-blue.svg)](https://github.com/Polymer/pwa-starter-kit \"Built with pwa–starter–kit\")\n\n# pwa-starter-kit-hn\n\nA Hacker News client built using [PWA Starter Kit](https://github.com/PolymerLabs/pwa-starter-kit). Using the starter-template as the starting point and the [wiki](https://github.com/PolymerLabs/pwa-starter-kit/wiki) for configuring and personalizing.\n\n![screenshot](https://user-images.githubusercontent.com/116360/39543436-1302e57c-4e00-11e8-86fb-74cd8ad0466f.png)\n\n## Features/highlights\n\n- Updating the Redux store from an API\n- Lazy-load actions, components, and reducers\n\n## Setup\n\n* `npm i`\n* `npm start`\n\n## Building \u0026 Deploying\n\nSee the [Building \u0026 Deploying](https://github.com/Polymer/pwa-starter-kit/wiki/5.-Building-\u0026-Deploying) section in the pwa-starter-kit wiki.\n\n### HTTP/2 push optimized build\n\nThe [push-proxy](https://github.com/Polymer/pwa-starter-kit-hn/compare/push-proxy) branch contains an optimized version of the prpl-server build that uses a proxy for Hacker News API requests so that it can use HTTP/2 server push for the initial API request as well. This is the build currently hosted on https://pwa-starter-kit-hn.appspot.com/.\n\n## Routing\n\nClient side routing is done by the pwa-helpers/router.js library, which intercept link clicks and dispatches the `updateLocation` action to the store. A state computed from the value of `window.location` is stored, and the rest of the app renders based on that state (never on `window.location` directly). `history.pushState` is called by the router library before the action is dispatched, meaning that `window.location` won't actually modify when using time-travel debugging. `popstate` events (e.g. browser back) will just dispatch the `updateLocation` action.\n\n## Lazy-loading\n\nDynamically-loaded elements are loaded as a side-effect by the `updateLocation` action in src/actions/app.js. These elements may export actions and selectors that are asynchronously used by the `updateLocation` action for a particular page.\n\n## File structure\n\n* actions/\n* reducers/\n  * Like [one of the Redux examples](https://github.com/reactjs/redux/tree/master/examples/real-world/src), actions and reducers are in their own directories\n* components/\n  * Custom element definitions that are statically or dynamically imported. Dynamically-imported components may also export functions that are used by the `updateLocation` action.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolymer%2Fpwa-starter-kit-hn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpolymer%2Fpwa-starter-kit-hn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolymer%2Fpwa-starter-kit-hn/lists"}