N
N
Nikolai Antonov2016-10-03 11:38:56
Node.js
Nikolai Antonov, 2016-10-03 11:38:56

How to set up nodejs on digital ocean server?

Today I bought vpn on digital ocean and I want to experiment with Node.js.
I installed ubuntu, connected via ssh and installed the node, and now I don’t know where to put the test html page to see it in the browser. I don't have a domain, but I have a server ip, I don't need a domain.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Savostin, 2016-10-03
@my-nickname

Node.js is an application server. If your application is written in, say, Express, then you specify the port when creating the server.
1. Open this port in the firewall to the outside
2. Run the application
3. Open
http://your_ip:port/
in the browser For production, you still need to configure everything

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question