Created restaurant page using ES6 classes and modules. I am aware of the ongoing argument of whether to use classes or ModulePatters/Factories. This project is purely for academic purposes and I have not personally come to a concusion on matter but I do prefer the use of Module Patterns/Factories currently as it is portrays how JavaScript Objects work better than classes do. Read this article for more info on pros and cons of using Classes in JavaScript. Another useful resource is Object Playground.
This application uses Webpack and so you must make all changes to JS files in src and run webpack using npm run build
, npm run dev
, npm run watch
etc.
The source JavaScript code would be compiled into the dist
folder's main.js file.
Before doing anything you must first run following command to install all npm packages this project depends upon.
npm install
Dev version of page is deployed here: https://raw.githack.com/mcrd25/basic-restaurant-page/restaurant-page/dist/index.html Production version of page is deployed here: https://mcrd25.github.io/basic-restaurant-page/