

In this article you will see how to do that on CentOS 7.Īll steps are easily reproducible on any other flavor of Linux. Let’s look at how you can host and deploy a production ready NodeJs application.įirst, you will need SSH access to a freshly installed server. In the world of Node it can be a little bit more complicated but it is worth it. Every time you have an update, just replace the code.

All you have to do is put your code into a specific folder. If you are coming from PHP or Ruby on Rails you might be used to having a very simple way of hosting & deploying your application. Where things get complicated is when you want to put your app in production, on a web server for the whole world to admire it. All you have to do is node app.js in the folder where your source code is and your application is ready to serve.

Doing local development with Node is simple.
