You have been provided the code for a restaurant reviews website. The code has a lot of issues. It’s barely usable on a desktop browser, much less a mobile device. It also doesn’t include any standard accessibility features, and it doesn’t work offline at all. Your job is to update the code to resolve these issues while still maintaining the included functionality.
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.
The client application should pull restaurant data from the development server, parse the JSON response, and use the information to render the appropriate sections of the application UI.
The client application works offline. JSON responses are cached using the IndexedDB API. Any data previously accessed while connected is reachable while offline.
- Clone or Download REST server and nagivate to it (Terminal) : https://github.com/MohamedSayed008/mws-restaurant-stage-2
# npm i
# npm i sails -g
# node server
- Clone or Download the App and nagivate to it (Terminal) : https://github.com/MohamedSayed008/mws-restaurant-stage-1
- Run
gulp serve
On Stage 3 of the MWS ND project we added :
Users are able to mark a restaurant as a favorite, this toggle is visible in the application. A form is added to allow users to add their own reviews for a restaurant. Form submission works properly and adds a new review to the database.
The client application works offline. JSON responses are cached using the IndexedDB API. Any data previously accessed while connected is reachable while offline. User is able to add a review to a restaurant while offline and the review is sent to the server when connectivity is re-established.
Lighthouse targets for each category exceed:
Progressive Web App: >90 Performance: >70 Accessibility: >90
- Clone or Download REST server and nagivate to it (Terminal) : https://github.com/MohamedSayed008/mws-restaurant-stage-3
# npm i
# npm i sails -g
# node server
- Clone or Download the App and nagivate to it (Terminal) : https://github.com/MohamedSayed008/mws-restaurant-stage-1
- Run
gulp serve