Giter Club home page Giter Club logo

restaurant-blockingqueue's Introduction

Restaurant-BlockingQueue

Customers can order food from a menu in the database

This project runs in Eclipse IDE. This is a Maven project, with a pom.xml to compile the xml file with dependencies used for this project, including libraries such as springboot, logger, etc. Once the program runs, the Tomcat server starts up.

Similar to a restaurant, a customer has a profile with their name, address, phone, etc. Each user is generated a profile ID that is auto incremented each time a new entry is made into the table.

JDBC is used to interact with the database. When customers order food from the menu, they are given an orderID that auto increments per user order. The orderID is then sent to a queue where the queue will service each order. Using a thread, the program will keep running in the background even if the queue is empty.


                                                        API

In Postman, click Headers tab, and Set key to Content-Type, and Value to application/json

Customers can order food from a menu in a PostGreSQL database using Postman.


Create Customer Profile: createCustomer() POST /orders/customer/

Postman headers body: {"customerName":"{name}","email":"{email}","address":"{address}","phoneNumber":"{phone}"}


Create customer order: createCustomerOrder() POST /orders/customer/order

Postman headers body: {"dateOrdered":"yyyy-MM-dd", "profileID":{profileID}}


Order item from menu: addItemToOrder() POST /orders/customer/order/item

Postman headers body: {"itemID":{itemID},"orderID":{orderID}, "quantity": {quantity}}


Get Customer order: getCustomerOrder() GET /orders/customer/order/{ordernum}


Get entire food menu: getEntireMenu() GET /orders/customer/order/menu


Get order details from customer: getOrderDetails() GET /orders/customer/order/{orderID}/details


Get customer profile GET /orders/customer/{profileID}


restaurant-blockingqueue's People

Contributors

naveenkaratekid avatar

Watchers

 avatar  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.