Polymer/hn-polymer-2

Name: hn-polymer-2

Owner: polymer

Description: Polymer Hacker News clone

Created: 2017-04-28 17:41:08.0

Updated: 2018-05-18 16:14:41.0

Pushed: 2018-05-24 12:56:48.0

Homepage: null

Size: 889

Language: HTML

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Polymer Hacker News client

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

Demo Screenshot
Try the Demo!

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

    install -g polymer-cli
    
  2. Install the dependencies

    install
    
  3. Serve the development version

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

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

    mer build
    
  6. Test deployment

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

    base deploy
    

TODOs

License

BSD-3-Clause


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.