Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

Restaurant Page

A dynamic restaurant website built with vanilla JavaScript and bundled with Webpack. This project demonstrates DOM manipulation, modular JavaScript, and modern build tools.

🌟 Features

  • Dynamic Content Loading: All page content is generated using JavaScript
  • Multi-Page Navigation: Home, Menu, and Contact pages without page reloads
  • Responsive Design: Clean, modern interface that works across devices
  • Modular Architecture: Organized code structure with separate modules for each page
  • Webpack Bundle: Optimized assets and code bundling for production

🛠️ Technologies Used

  • JavaScript (ES6+): Core functionality and DOM manipulation
  • HTML5 & CSS3: Structure and styling
  • Webpack: Module bundling and asset management
  • Git & GitHub: Version control and deployment

📂 Project Structure

Odin_Project_Restaurant_Page/
├── src/
│   ├── index.js          # Entry point and navigation logic
│   ├── home.js           # Home page module
│   ├── menu.js           # Menu page module
│   ├── contact.js        # Contact page module
│   ├── style.css         # Styles
│   ├── template.html     # HTML template
│   └── images/           # Restaurant and food images
├── dist/                 # Compiled/bundled files (generated)
├── webpack.config.js     # Webpack configuration
└── package.json          # Project dependencies

🚀 Getting Started

Prerequisites

  • Node.js and npm installed on your machine

Installation

  1. Clone the repository:
git clone https://github.com/Sammorad/Odin_Project_Restaurant_Page.git
cd Odin_Project_Restaurant_Page
  1. Install dependencies:
npm install
  1. Run webpack to build the project:
npx webpack
  1. Open dist/index.html in your browser to view the site

Development

For development with automatic rebuilding:

npx webpack --watch

🌐 Live Demo

Visit the live site: Restaurant Page

📦 Deployment

This project is deployed to GitHub Pages. To deploy updates:

  1. Ensure all changes are committed
  2. Switch to gh-pages branch and merge main:
git checkout gh-pages && git merge main --no-edit
  1. Build the project:
npx webpack
  1. Deploy using git subtree:
git add dist -f && git commit -m "Deployment commit"
git subtree push --prefix dist origin gh-pages
git checkout main

📝 About This Project

This project is part of The Odin Project curriculum, focusing on:

  • Using JavaScript to dynamically render page content
  • Working with ES6 modules
  • Setting up and configuring Webpack
  • Organizing code into reusable modules

👨‍💻 Author

Sammorad

📄 License

This project is open source and available for educational purposes.


Built as part of The Odin Project's Full Stack JavaScript curriculum

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages