Skip to content

bot calculator using typescript, socket.io and mongoDB.

Notifications You must be signed in to change notification settings

hhow09/math-chatbot-mern

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coding Challenge

Create a bot calculator using Typescript, socket.io and mongoDB.

Requirements

  1. I can open the app in a browser that contains a command input
  2. I can chat with the bot using only 2 possible command types
  3. Operation command: 1 + 1 or 5 * 3, 1526 - 1452 + 5623 * 2, ...
    • operators: +, -, *, /
    • number: integer, floating point
  4. History command: history to display latest 10 calculations used
    • History can be dropped on app restart
  5. The code can be accessed through your github/gitlab account, please send us a link when you’re done.
  6. Please use multiple commits and descriptive commit description
  7. Implement unit testing
  8. Split it up into a frontend and a backend (use the MERN stack)
  9. Using typescript will be a bonus.
  10. Please avoid using the eval-cmd of the JS math library
  11. The more effort you put into it (e.g. design wise, documentation wise) the better the rating will be.

Demo

demo

How to start

  1. follow the instructions in backend/README.md to start backend server
  2. follow the instructions in frontend/README.md to start frontend