神刀安全网

Offline first web application seed(PouchDB, ServiceWorker,Express.js)

offline-first-seed

Minimalistic JavaScript offline first application seed using PouchDB and ServiceWorker

Uses Express/Node for server. Runs PouchDB both on server and client to allow working offline and sync when online Uses ServiceWorker to allow running page/app while offline Uses MaterializeCSS for styling

Usage

Install dependencies, under windows may require node-gyp

npm install

To start server

npm start

Now you can go to http://localhost:3000/

  • Allows adding and removing messages
  • Shows if in sync or disconnected
  • Shows log of events/errors from PouchDB

Offline first web application seed(PouchDB, ServiceWorker,Express.js)

转载本站任何文章请注明:转载至神刀安全网,谢谢神刀安全网 » Offline first web application seed(PouchDB, ServiceWorker,Express.js)

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
分享按钮