Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Byte & Dine 🍽️ - A Restaurant Page Project

This project is a dynamic, single-page restaurant website built as part of The Odin Project's curriculum. The primary focus was on using JavaScript to generate all the content dynamically and bundling the files using Webpack.


✨ Features

  • Purely Dynamic: All content, including the pages, is generated and manipulated using JavaScript.
  • Tabbed Browse: Seamlessly switch between Home, Menu, and About Us pages without a page reload.
  • Module Bundling: Uses Webpack to bundle JavaScript modules, CSS, and assets for an optimized workflow.

🛠️ Built With

  • HTML5
  • CSS3
  • JavaScript (ES6 Modules)
  • Webpack
  • npm

🖥️ Live Demo

You can view the live version of the project here:

Click Here


⚙️ Getting Started

To get a local copy up and running, follow these simple steps.

Prerequisites

Make sure you have Node.js and npm installed on your machine. You can download them from nodejs.org.

Installation & Setup

  1. Clone the repository:

    git clone https://github.com/devxsameer/restaurant-page.git
  2. Navigate into the project directory:

    cd restaurant-page
  3. Install the dependencies specified in package.json:

    npm install
  4. Start the Webpack development server: This command will open a live server, usually at http://localhost:8080.

    npm run dev

And you're all set! The project will automatically open in your default browser. 🔥


Reflections & Learnings (Day 48-49 of #100DaysOfCode)

  • Gained hands-on experience setting up a modern JavaScript project from scratch using npm init.
  • Learned to configure webpack.config.js for development (mode: 'development'), setting up entry and output points, and using the webpack-dev-server.
  • Practiced organizing code into separate ES6 modules for better maintainability (e.g., home.js, menu.js, contact.js) and importing/exporting functions.
  • Solidified DOM manipulation skills by building the entire page structure with JavaScript functions instead of static HTML.

Releases

Packages

Contributors

Languages