Coder Social home page Coder Social logo

react-pwa's Introduction

OFFLINE FIRST PWA

w/ React, PouchDB, Cloudant

Nick Kasten IBM Dev Intern Summer 2017

Quick Start

  1. git clone this repo and cd into the project's root directory.
  2. Execute mv src/sample-secret.js src/secret.js from the root directory.
  3. Create a new database in your Cloudant instance.
  4. Enable CORS in Cloudant and add http://localhost:3000 to the list of origin domains.
  5. Add your Cloudant URL to src/secret.js.
  6. Execute npm install from the root directory of the project to install dependencies.
  7. Use npm start to start the development server and launch your app.
  8. Navigate to http://localhost:3000 to see your app runninig in your browser.

Testing Service Workers/Offline Support

  1. In Cloudant add http://localhost:5000 to the list of origin domains.
  2. Run npm run build to run a production build.
  3. Run npm install -g serve to install serve.
  4. Run serve -s build to serve the production build.
  5. Navigate to http://localhost:5000 to see your app runninig in your browser.

react-pwa's People

Contributors

kastentx avatar markwatsonatx avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.