Run noobhub on global server

Hello,

I am using noobhub for implementing chat functionality in my app. For that I am using https://github.com/Overtorment/NoobHub .

Using node node.js command, I am setting up a local server on my system. In node.js, at server.listen, I am using my ip address and port number to make it work properly,

In main.lua, on the place of

hub = noobhub.new({ server = “127.0.0.1”; port = 1337; });

server and port, I am using my system ip address and port which I have used in mode.js.

When I am running it, it is working properly.

Now I want to make it global. For that what I have to do?

  1. Should I have to run node.js on server?

  2. In place of server and port what should I use to make it global so that I can run my app(chat server) on other devices?

Please suggest.

Thanks in advance.

You will need a server somewhere that supports node.js and can run it for you.  You probably could google “node.js hosting” to find a list of providers.

Once you have that they will provide you a server name that you can use to reach it.  As far as the port, it would be whatever port you started the node.js server up on.

Rob

Thanks. 

I have googled about nodejs hosting but I am not getting it properly what should I do with that. I want to implement one to one chat in my app. Is there any other way to do this?

I recommend that before thinking about hosting to get it working locally and make a server on the same computer as you are working on.

I have tested Noobhub successfully Amazon micro server (AWS Free Usage Tier for 1 year) and I believe the creator recommends https://www.digitalocean.com/.

@jonjonsson I am not getting you.

Sorry, didn’t read your post properly. You already have it working locally.

You can use pretty much any VPN server to use it globally. I have tested it with Amazon micro server (AWS Free Usage Tier for 1 year) and I believe the creator recommends https://www.digitalocean.com/ hosting. 

Here is a tutorial using Digital Ocean hosting.

You will need a server somewhere that supports node.js and can run it for you.  You probably could google “node.js hosting” to find a list of providers.

Once you have that they will provide you a server name that you can use to reach it.  As far as the port, it would be whatever port you started the node.js server up on.

Rob

Thanks. 

I have googled about nodejs hosting but I am not getting it properly what should I do with that. I want to implement one to one chat in my app. Is there any other way to do this?

I recommend that before thinking about hosting to get it working locally and make a server on the same computer as you are working on.

I have tested Noobhub successfully Amazon micro server (AWS Free Usage Tier for 1 year) and I believe the creator recommends https://www.digitalocean.com/.

@jonjonsson I am not getting you.

Sorry, didn’t read your post properly. You already have it working locally.

You can use pretty much any VPN server to use it globally. I have tested it with Amazon micro server (AWS Free Usage Tier for 1 year) and I believe the creator recommends https://www.digitalocean.com/ hosting. 

Here is a tutorial using Digital Ocean hosting.