This is a simple web-based restaurant menu that fetches data from a Google Sheets document using the Google Sheets API. The menu sections are dynamically generated and include a sample "Order Now" button for each section.
- Dynamic fetching of menu items from Google Sheets.
- Responsive design with separate CSS and JavaScript files.
- Each section includes an "Order Now" button linking to a sample order page.
- Easy to customize and extend.
https://codepen.io/Abqariyuh-A-A-Yusuf/full/qBGeEzE
- Basic knowledge of HTML, CSS, and JavaScript.
- Google account with access to Google Sheets.
- Google API key for accessing the Google Sheets API.
- Create a new Google Sheet or use the provided template.
- Ensure the sheet has the following structure:
- Column A: Section name (e.g., "Finger Foods")
- Column B: Item name (e.g., "Chicken Wings")
- Column C: Item price (e.g., "N3,000")
View or download the Google Sheets template
- Go to the Google Cloud Console.
- Create a new project or select an existing project.
- Enable the Google Sheets API for the project.
- Create credentials and obtain an API key.
- Restrict the API key to only allow requests from your domain.