An open API service indexing awesome lists of open source software.

https://github.com/jonaskuske/restaurant-reviews

🍔 Little web app for showing, filtering and adding restaurant reviews
https://github.com/jonaskuske/restaurant-reviews

Last synced: about 1 year ago
JSON representation

🍔 Little web app for showing, filtering and adding restaurant reviews

Awesome Lists containing this project

README

          

# MWS project "restaurant" - Stage 3
Repository for my restaurant project of Udacity's MWS nanodegree.

> Stage 1: The restaurant site now is responsive, utilizes a service worker for static and runtime caching and has improved accessibility.
> Stage 2: The project now receives data from a dynamic backend, which is stored/cached in IndexedDB.
> Stage 3: The project allows adding new user reviews which are synced in the background, marking/unmarking restaurants as favorite and has performance improvements.

The commits starting from [*#473a4b9*](https://github.com/jonaskuske/mws-restaurant-3/commit/473a4b9b98e1d8644a37062173f29680763c8503) are the relevant ones for stage 3.

## Instructions

`npm install` to install frontend dependencies (live-server)
`npm run install:backend` to install backend dependencies

`npm start` to start both backend and frontend
`npm run build` to compile a minified production-grade version

`npm run serve:backend` to start backend on localhost:1337
`npm run serve:frontend` to serve frontend on localhost:8000 and open in Chrome

### About evaluating the performance in Lighthouse
To test the performance, please use the production-grade version of this app, not the one generated for the live server!
The production version can be built using `npm run build` and is then found in the folder 'dist'.
Also, please remember to run Lighthouse in an Incognito-Tab, so browser extensions etc. can't skew the results.