Also we need to install Nginx web server to proxy http and https requests (from 80, 443 ports) to node application port.
sudo apt-get install nginx
We need to install Git if we want to deploy our application from git repository:
sudo apt-get install git
Next go to /home directory and use command:
git clone repositury_url
This command will clone all files from your git repository to server.
Next we need to install all dependencies from package.json:
And now we can run our application using command:
But this command will stop work if our server will restart or if we close SSH connection to server. To run our application as daemon on server startm use special command pm2. Install it globally with Npm package manager:
sudo npm install pm2 -g
This program will run our node.js application in background:
pm2 start index.js
TO automatic start pm2 on system boot – generate startup script using command:
In our first app we will use Express framework. Express is a minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications. To install express use command:
This service with open source and MIT license encrypt your message and generate special URL link, that you can send in social network or messenger to other people, after reading your message it will be automatically destroyed and no one will be able to read your message again.
Another PHP framework for web applications is Symfony. It is used by thousands of web applications (including BlaBlaCar.com and Spotify.com) and most of the popular PHP projects (including Drupal and Magento).GitHub Stars: 17.8k+