Home

Awesome

Polymer Hacker News client

Very basic Hacker News Progressive Web App client made with Polymer 2.

<p align="center"> <a href="https://hn-polymer-2.firebaseapp.com" rel="noopener" target="_blank"> <img alt="Demo Screenshot" src="hn-polymer.png" height="500"> <br> Try the Demo! </a> </p>

Performance

Features

Progressive Web App

Polymer CLI

hn-polymer-2 was created by using the Polymer CLI, a collection of tools to make building Web Components and Polymer apps easier.

Using Polymer Starter Kit template provided by the CLI made following the PRPL pattern easy from the start.

PRPL pattern

The PRPL pattern, in a nutshell:

Firebase

Firebase provides easy http2-enabled static hosting, a real-time database, server functions, and edge-caching all over the globe.

Setup

  1. Install polymer-cli globally

    npm install -g polymer-cli
    
  2. Install the dependencies

    npm install
    
  3. Serve the development version

    polymer serve
    
  4. (Optional) Enable firebase function based HN API proxy

    • Edit sw-precache-config.js
    • Edit src/hn-app.html
  5. Build

    polymer build
    
  6. Test deployment

    polymer serve build/es5-bundled
    
  7. Deploy after setting up a firebase project

    firebase deploy
    

TODOs

License

BSD-3-Clause