For the Restaurant Reviews projects, you will incrementally convert a static webpage to a mobile-ready web application. In Stage Three, you will take the connected application you yu built in Stage One and Stage Two and add additional functionality. You will add a form to allow users to create their own reviews. If the app is offline, your form will defer updating to the remote database until a connection is established. Finally, you’ll work to optimize your site to meet even stricter performance benchmarks than the previous project, and test again using Lighthouse.
You will be provided code for a Node development server and a README for getting the server up and running locally on your computer. The README will also contain the API you will need to make JSON requests to the server. Once you have the server up, you will begin the work of improving your Stage Two project code.
- In this folder, start up a simple HTTP server to serve up the site files on your local computer. Python has some simple tools to do this, and you don't even need to know Python. For most people, it's already installed on your computer.
In a terminal, check the version of Python you have: python -V
. If you have Python 2.x, spin up the server with python -m SimpleHTTPServer 8000
(or some other port, if port 8000 is already in use.) For Python 3.x, you can use python3 -m http.server 8000
. If you don't have Python installed, navigate to Python's website to download and install the software.
- With your server running, visit the site:
http://localhost:8000
, and look around for a bit to see what the current experience looks like. - Explore the provided code, and make start making a plan to implement the required features in three areas: responsive design, accessibility and offline use.
- Write code to implement the updates to get this site on its way to being a mobile-ready website.
Most of the code in this project has been written to the ES6 JavaScript specification for compatibility with modern web browsers and future proofing JavaScript code. As much as possible, try to maintain use of ES6 in any additional JavaScript you write.
- Clone this repo mws-restaurant-stage-3.
- In a terminal CD to the Repo and type
npm install
. - Now run
npm i sails -g
. - Launch the server:
node server
.
- Clone this repo.
- In a terminal CD to the Repo and type
npm install
. - Run Gulp by just typing
gulp
to automatic run all gulp tasks and start web development server.
gulp images
You might need to install a third party library on your system to manipulate images. The library is GraphicsMagick. To install it simply type brew install graphicsmagick
. For more install options visit [gulp-responsive-images]https://github.com/dcgauld/gulp-responsive-images/
gulp scripts
gulp styles
gulp browser-sync
MWS Restaurant Stage 1 Sample APP link MWS Restaurant Stage 3 Data Server link Jake Archibald's IDB Library link Icons made by Smashicons link from Flaticon link is licensed by Creative Commons BY 3.0 link