GithubHelp home page GithubHelp logo

rbernalagainagain / mws.nd.2018.s3 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jeremielitzler/mws.nd.2018.s3

0.0 0.0 0.0 1.37 MB

Code base for the Udacity's "Mobile Web Specialist Restaurant Reviews App: Stage 3" Project https://resto-reviews.puzzlout.com

License: GNU General Public License v3.0

CSS 18.00% JavaScript 70.42% HTML 10.95% Shell 0.64%

mws.nd.2018.s3's Introduction

Udacity Nanodegree and Google Challenge "Mobile Web Specialist"

-Code base for the Udacity's "Mobile Web Specialist Restaurant Reviews App: Stage 3" Project https://resto-reviews.puzzlout.com

Project Overview: Stage 3

The API is available at the Udacity repository: https://github.com/udacity/mws-restaurant-stage-2 Follow the installation instruction before launching the PWA.

The application falls back the static json file of stage 1 if the API is not available. Therefore, the restaurants will always be available.

In addition, the strategy used:

  • Read the IDB database first.
  • Read the API, even if IDB returned results, and cache the API response in IDB (to keep up to date the data).
  • Read the JSON file if the API in unavailable, and also cache the data in IDB.

Installation

IMPORTANT: Gulp is required to generate the responsive images.

Pre-requisites :

  • Latest LTS NodeJS with npm

Then run the following commands:

  • first, install the dependencies: npm install
  • then, build the app in production mode: gulp go-live
  • navigate the built app: cd build/
  • finally, launch the app in your default browser (Chrome is recommended ;)): serve -o

Background Sync Testing

To test the background sync locally, you must:

  • Stop all local servers,
  • Disable all network connectivity.

Then you can add a review offline.

To verify the synchronisation works:

  • Start all local servers,
  • Enable network connectivity.

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.