项目作者: amr08

项目描述 :
*Offline first* React/Redux app with Service Worker
高级语言: JavaScript
项目地址: git://github.com/amr08/nyt-service-worker.git
创建时间: 2018-01-23T01:41:04Z
项目社区:https://github.com/amr08/nyt-service-worker

开源协议:

下载


NYTimes React/Redux app with Service Worker

Note* User notifications only trigger when a service worker update is available by me deploying a new version. I’ve recorded these events below. (Please excuse UI as I was going more for functionality :) )

Task: Make an application that works offline and present user notifications which will replace a service worker if there is a newer version.

Tech


  • React, Redux
  • Node, Express
  • Front-End Framework: Semantic UI React
  • NYT API
  • Service Worker

Service worker in action updating by User Notification

Application Offline


*(Node server is in build branch for deployment at localhost:8080)

Prerequisites

This application uses Node.js and NPM

Installing and Running

To install package.json:

  1. $ npm install

To start server:

  1. $ npm start

localhost:3000 will open in browser

Voila!