Skip to content

Latest commit

 

History

History
143 lines (93 loc) · 7.95 KB

README.md

File metadata and controls

143 lines (93 loc) · 7.95 KB

A Chatbot for a restaurant

This is a mini chat bot application created using Node.js, ExpressJs and Socket.io. This chat bot allows bidirectional communication between the client and the server.


Contributors Forks Stargazers Issues Linkedin Badge Twitter Badge AltSchool Badge


Technologies used

NodeJS Express.js Socket.io CSS3 HTML5 Javascript


Requirements

The following are the requirements for this project 👇:
  • ChatBot interface should be like a chat interface.

  • When a customer lands on the chatbot page, the bot should send these options to the customer:

    • Select 1 to Place an order

    • Select 99 to checkout order

    • Select 98 to see order history

    • Select 97 to see current order

    • Select 0 to cancel order

  • When a customer selects “1”, the bot should return a list of items from the restaurant.The order items can have multiple options but the customer should be able to select the preferred items from the list using this same number select system and place an order.

  • When a customer selects “99” out an order, the bot should respond with “order placed” and if none the bot should respond with “No order to place”. Customer should also see an option to place a new order

  • When a customer selects “97”, the bot should be able to return current order

  • When a customer selects “0”, the bot should cancel the order if there is.



Development

Prerequisites

  • Ensure you have Node.js installed on your local machine.

Clone this repo

 git clone /~https://github.com/wendeee/Chef-Chat.git

Install project dependencies

npm install

Update .env with example.env

Run development server

npm run dev

Lessons I learned while working on this:

  • Learned how to use socket.io to create applications that allows bidirectional communication.

Contact

Project Link: /~https://github.com/wendeee/Chef-Chat