There’re two ways to install Node.js on Ubuntu and other Linux distributions:
- Compile and install from the source of Node.js
Then you could use VIM to edit a simple JavaScript file to have a test on your server:
Firstly, I should clone the repository on Github:
Then install the dependencies:
Install PM2:
Edit the “scripts” field on package.json
Now we are able to start our application using npm start
command.
It’s very simple to install Nginx on Ubuntu:
And now, we have to modify the config file of Nginx to make the proxy work.
And now we can visit Riki via IP without :