I'm currently new to node.js, and I am making a chat-bot based application. However, the IBM Natural Language Understanding API does not have documentation for regular javascript code, and instead requires the utilization of the nodeJS server. I had no knowledge of nodeJS beforehand.
The application is intended to work as follows: A user types in a large corpus of text, then the "chatbot" sends the text to FireBase and to a nodeJS module to have main keywords extracted by the IBM API. These main keywords are then stored into Firebase and then extracted from firebase by the web application to display the keyword text. I tried to run node.js, but I cannot seem to pass the variable from the chatBox into nodeJS. I am also using localhost:5000 as a port for my website. Where is my logic flawed, and what is the best way to resolve this issue?