Code Monkey home page Code Monkey logo

restaurant-order-management-system's Introduction

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

  • Have written comments in code.
  • Used meaningful names for variables and methods.
  • Made several components and functionalities loosely coupled.
  • Focused on code maintainability, readability and reusability.
  • Worked on handling edge cases as much as possible.
  • 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: thecoducer#1 (comment)

restaurant-order-management-system's People

Contributors

thecoducer avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.