Skip to content

A restaurant ordering app with the ability to add/remove items and accept payment methods.

Notifications You must be signed in to change notification settings

ananfito/restaurant-ordering-app

Repository files navigation

Restaurant Ordering App

A restaurant ordering app with the ability to add/remove items and accept payment methods.

Contents

Overview

This is my solo project from Module 5 of Scrimba's Frontend Career Path. The requirements of the project include:

  • Following the design specfications (as indicated in the provided Figma file) (with some creative license allowed)
  • Render the menu options using JavaScript
  • Be able to add/remove items
  • Have a payment modal with compulsory form inputs

Screenshots

Desktop

a webpage for a fictional plant-based restaurant called Tony's Bistro featuring a hero image at the top with a plate of burgers and three menu items: pizza, hamburger, beer

a webpage for a fictional plant-based restaurant called Tony's Bistro featuring a hero image at the top with a plate of burgers and three menu items: pizza, hamburger, beer

a webpage for a fictional plant-based restaurant called Tony's Bistro featuring a hero image at the top with a plate of burgers and three menu items: pizza, hamburger, beer

a webpage for a fictional plant-based restaurant called Tony's Bistro featuring a hero image at the top with a plate of burgers and three menu items: pizza, hamburger, beer

a webpage for a fictional plant-based restaurant called Tony's Bistro featuring a hero image at the top with a plate of burgers and three menu items: pizza, hamburger, beer

Mobile

a webpage for a fictional plant-based restaurant called Tony's Bistro featuring a hero image at the top with a plate of burgers and three menu items: pizza, hamburger, beer

a webpage for a fictional plant-based restaurant called Tony's Bistro featuring a hero image at the top with a plate of burgers and three menu items: pizza, hamburger, beer

a webpage for a fictional plant-based restaurant called Tony's Bistro featuring a hero image at the top with a plate of burgers and three menu items: pizza, hamburger, beer

a webpage for a fictional plant-based restaurant called Tony's Bistro featuring a hero image at the top with a plate of burgers and three menu items: pizza, hamburger, beer

My Process

The design of this app uses a column layout so I took advantage of using flexbox to keep things nice and tidy -- both for large and small screens. This helped to eliminate the need for media queries and keep things simple.

Once the design was set in place, I started using JavaScript to manipulate the DOM to meet the requirements of rendering the menu, add/remove items, and accepting payments. For this I used the following technqiues:

  • Use of the data attributes in HTML elements
  • Use of array to collect selected order items
    • This helped in rendering the order items list, removing items, and calculating the total
  • Functional programming to break down different tasks:
    • Generate menu HTML
    • Generate order HTML
    • Render menu and order
    • Calculate order total
    • Add/remove items
    • Accept payment
  • JavaScript Array methods: forEach(), .splice(), .findIndex(), .push()

Built with

  • HTML
  • CSS
  • JavaScript

Status

A live version can be viewed at: https://ananfito.github.io/restaurant-ordering-app/.

Connect

Thank you for reading about this project. If you'd like to connect with me for mentoring, collaboration, or employment opportunities, you can do so via the following links:

About

A restaurant ordering app with the ability to add/remove items and accept payment methods.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published