thecoducer / restaurant-order-management-system

Restaurant order management app built using Angular + Firebase

Home Page:https://21club.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Netlify Status

Web app URL: https://21club.netlify.app/
Demo video: https://www.youtube.com/watch?v=CAT73JMVV-k

Restaurant Order Management System

About

This is an Angular web application whose backend is powered by Firebase.

  • Customers can select food items from the menu, add them to their cart and place orders.
  • Admins can add new food items, edit any existing item and manage customer's orders.

Frameworks/Tools used

Highlights

  • Made several components and functionalities loosely coupled.
  • Focused on code maintainability, readability and reusability.
  • Used RxJs's BehaviorSubject and Observable to communicate between several components and keep data in sync. For instance, when we add/remove items to cart from menu page the cart data gets updated in local storage. There is a service for handling the local storage where the cart data is passed to a BehaviorSubject so that components that need the cart data updates can subscribe to its Observable and listen to the updates. The number of items and subtotal amount in the cart bar at the bottom of page has subscribed to the cart data updates and that's why the values change whenever the cart is updated.
  • Used async/await to make use of asynchronous programming for API calls.

How to run

  1. Clone the repo
  2. Install all the dependencies:
npm install
  1. Run the angular application:
ng serve --open

Screenshots

Home page



Login page



Menu page from where users can add items to their cart



User's order page



Add a new item page (only accessible to admins)



Edit an existing item page (only accessible to admins)



Manage items page



Improvements

Listed here: #1 (comment)

About

Restaurant order management app built using Angular + Firebase

https://21club.netlify.app/


Languages

Language:TypeScript 51.0%Language:HTML 37.8%Language:CSS 10.1%Language:JavaScript 1.0%