Project made for Udacity Mobile Web Specialist Certification Course by romerixo.
- The project is only tested on Google Chrome.
- The format used for the images is WebP which is unsupported by Mozilla Firefox and others.
- Offline capabilities are performed with IndexedDB API through Jake Archibald's IndexedDB Promised library. This is done with the Service Worker in
sw.js
.
- Clone or download from my repo Project-Restaurant-Review.
git clone https://github.com/romerixo/Project-Restaurant-Review.git
- Clone or download from my repo mws-restaurant-stage-3.
git clone https://github.com/romerixo/mws-restaurant-stage-3.git.
- Instal a HTTP Server that supports gzip encode, e.g http-server.
npm install -g http-server
-
Install and run the backend server API mws-restaurant-stage-3
-
From
Project-restaurant-Review
folder install dependencies.
npm i
- Build the project in develpment mode with
gulp
.
gulp build
- You can also to use the production mode.
gulp build:dist
- Run
http-server
to start the App.- Development mode, from the root directory (
/
).
http-server -p80
- Production mode, inside dist folder (
/dist
), note-g
flag for enable gzip encode.
http-server -p80 -g
- Development mode, from the root directory (
- Open with Google Chrome http://localhost:80.
You will need to use the backend server from my repository https://github.com/romerixo/mws-restaurant-stage-3 since I modified the file localDiskDb.db
from .tmp
folder. You can simply replace the file in your backend server with mine (https://github.com/romerixo/mws-restaurant-stage-3/blob/master/.tmp/localDiskDb.db).