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.
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.
- Ensure you have Node.js installed on your local machine.
git clone /~https://github.com/wendeee/Chef-Chat.git
npm install
Update .env with example.env
npm run dev
- Learned how to use socket.io to create applications that allows bidirectional communication.
- Twitter - @_ChinwenduE
Project Link: /~https://github.com/wendeee/Chef-Chat