- In command prompt, cd into the cloned project folder.
For eg.C:\Users\USERNAME>cd mws-restaurant-stage-1
- cd into 'src' folder.
For eg.C:\Users\USERNAME\mws-restaurant-stage-1>cd src
- 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
For eg.C:\Users\USERNAME\mws-restaurant-stage-1\src>python -V
Gives the result, Python 3.7.3 If you don't have Python installed, navigate to Python's website to download and install the software. - 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
python -m http.server
- With your server running, visit the site at:
http://localhost:8000
The local development API server should be set up before you can fully explore the site. Please follow the steps given below.
Local server
- Node.js
- Sails.js
- Brandy Lee Camacho - Technical Project Manager
- David Harris - Web Services Lead
- Omar Albeik - Frontend engineer
Local Development API Server depends on node.js LTS Version: v6.11.2 , npm, and sails.js Please make sure you have these installed before proceeding forward.
- Clone the API from mws-restaurant-stage-3
- Open node.js CLI
- cd into cloned API folder.
For eg.
C:\Users\USERNAME>cd mws-restaurant-stage-3
- Install project dependancies
npm i
- Install Sails.js globally
npm i sails -g
- Start the server
node server
- debug: Environment : development
- debug: Port : 1337
Keep the server running. Visit the endpoints given in the readme file of the API repo mws-restaurant-stage-3.
The Restaurant Reviews App project had three stages.
In Stage One, I have taken a static design that lacked accessibility and converted the design to be responsive on different sized displays and accessible for screen readers. I have also added a service worker to begin the process of creating a seamless offline experience for the users.
In Stage Two, an API was introduced from which restaurant information was retrived. The local development API server is available at mws-restaurant-stage-2. I have refactored the stage 1 project to make use of this new API. Implemented 'Fetch API' to retrive data from API and made use of 'IndexedDB' to cache retrived data.
In Stage Three, a new richer API was introduced with additional functionalities from which restaurant information was retrived. The local development API server is available at mws-restaurant-stage-3. I have refactored the stage 2 project to make use of this new API.
- Responsive design. Try resizing the browser to see this in action.
- Accessible design. Try using screen reader to see this in action.
- Implemented 'Service Worker'and browser caching with 'IndexedDB'. Try examining the console log with DEV TOOLS.
- Properly aligned widgets with optimised content display. Try revealing and hiding the map in homepage.
- Optimised code.
- 'Add a review' form implementation. Try adding a review for a restaurant.
- 'Mark as favorite' button implementation. Try marking a restaurant as favorite.
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, I have tried to maintain use of ES6 in any additional JavaScript I wrote.