How can I deploy My chatbot in Linux Machine I'm using Node.js And RASA NLU

June 25, 2019 191 views
Node.js Linux Basics Ubuntu

Im using Node.js and RASA ain My chatbot and want to deploy it on Linux. How to do that??

1 Answer

Hello,

I assume you are talking about the following ChatBot

If you are, then you can check this guide

Preparing deployment of ChatBot

You would first need to deploy NodeJS on your ubuntu server.

Once you have NodeJS installed, you'll need to install atleast Python 3.5. To do so, you can execute the following on your server

sudo apt-get update
sudo apt-get -y upgrade

Once you have your enviroment upgrade, you'll need to install some additional packages:

npm install socket.io
npm install express

Now you'll be ready to deploy chatbot.

To do so, you'll need to use git. Enter the directory you wish to deploy chat bot and run the following command:

git clone https://github.com/Gabryxx7/chatbot-node-rasa.git

Now the last bit, to start chatbot just execute

sudo node index.js

You should get the following reply

root@Testinggg:/var/www/html/chatbot-node-rasa# sudo node index.js
Chatbot is listening on port 8000!
by Brennen Bearnes
by Kathleen Juell
Node.js is a JavaScript platform for general-purpose programming that allows users to build network applications quickly. In this guide, we'll show you how to get started with Node.js on an Ubuntu 18.04 server.
Have another answer? Share your knowledge.