https://github.com/mcrd25/basic-restaurant-page
Created restaurant page using ES6 classes and modules
https://github.com/mcrd25/basic-restaurant-page
Last synced: 6 months ago
JSON representation
Created restaurant page using ES6 classes and modules
- Host: GitHub
- URL: https://github.com/mcrd25/basic-restaurant-page
- Owner: mcrd25
- Created: 2019-08-10T00:47:42.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T09:22:20.000Z (over 3 years ago)
- Last Synced: 2025-04-06T18:18:35.263Z (over 1 year ago)
- Language: JavaScript
- Size: 6.82 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Basic Restaurant Page using JavaScript ES6 to Render
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](https://medium.com/@rajaraodv/is-class-in-es6-the-new-bad-part-6c4e6fe1ee65) for more info on pros and cons of using Classes in JavaScript.
Another useful resource is [Object Playground](http://www.objectplayground.com/).
## Webpack
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`
## Deployment Page
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/
## Contributors
### Maya Douglas ([@mcrd25](https://github.com/mcrd25))
#### Social Links
* [Twitter](https://twitter.com/mcrd25)
* [LinkedIn](https://www.linkedin.com/in/mayadouglas/)