How can I run a node.js server -
I'm new to nodes and many things are unclear.
As such, for php, I just need an index.php file on the root directory of the server and it can work by itself.
However, for a node.js file, do we need it in the "node" command in the terminal?
So what if we close that terminal? How can I move it to accept my requests? You are saying that the 'node' command will start a node process that you supply it to.
As far as walking, there are several ways to do this. There are lots of CLI libraries that will help you, for example, it is called a
, if you are using Linux, then you can easily run the node process as a background process. :
node server.js & amp;
Comments
Post a Comment