Node.js Backend Migration to Hostinger VPS
Budget: $30 – $250 USD
I'm looking for a developer to help me move the Node.js backend from localhost on a personal device to a VPS hosted on Hostinger.
VPS is already running with the frontend setup on apache2 and working; 82.112.227.196 or system.beyond-behavior.net
Need to move the backend written in node.js and teach me how to do that next time.
The system status is as follows:
root@rqb:/home/rqb# node -v
v20.16.0
root@rqb:/home/rqb# npm -v
10.8.1
---
root@rqb:/home/rqb# sudo systemctl status apache2
● apache2.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled; preset: enabled)
Active: active (running) since Fri 2024-08-09 13:59:32 UTC; 50min ago
Docs: https://httpd.apache.org/docs/2.4/
Main PID: 1605 (apache2)
Tasks: 55 (limit: 9488)
Memory: 11.8M (peak: 12.3M)
CPU: 367ms
CGroup: /system.slice/apache2.service
├─1605 /usr/sbin/apache2 -k start
├─3199 /usr/sbin/apache2 -k start
└─3200 /usr/sbin/apache2 -k start
---
root@rqb:/var/www/html/beyond-behavior# ls -al
total 336
drwxr-xr-x 6 root root 4096 Aug 9 14:33 .
drwxr-xr-x 3 root root 4096 Aug 9 14:00 ..
drwxr-xr-x 2 root root 4096 Aug 9 14:01 backup
-rw-r--r-- 1 root root 6797 Aug 9 14:31 invoiceServerPdf.js
-rw-r--r-- 1 root root 6631 Aug 9 14:31 invoiceServerXlsx.js
drwxr-xr-x 2 root root 4096 Aug 9 14:05 log
drwxr-xr-x 107 root root 4096 Aug 9 14:33 node_modules
-rw-r--r-- 1 root root 48962 Aug 9 14:33 package-lock.json
-rw-r--r-- 1 root root 515 Aug 9 14:31 package.json
drwxr-xr-x 2 root root 4096 Aug 9 14:37 public
-rw-r--r-- 1 root root 249123 Aug 9 14:31 template.xlsx
---
root@rqb:/etc/apache2/sites-available# nano system.beyond-behavior.net.conf
<VirtualHost *:80>
ServerAdmin ***
ServerName system.beyond-behavior.net
ServerAlias system.beyond-behavior.net
DocumentRoot /var/www/html/beyond-behavior/public/
ErrorLog /var/www/html/beyond-behavior/log/error.log
CustomLog /var/www/html/beyond-behavior/log/access.log combined
RewriteEngine on
RewriteCond %{SERVER_NAME} =system.beyond-behavior.net
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
---
root@rqb:/# sudo ufw status
Status: active
To Action From
-- ------ ----
Apache Full ALLOW Anywhere
OpenSSH ALLOW Anywhere
Apache Full (v6) ALLOW Anywhere (v6)
OpenSSH (v6) ALLOW Anywhere (v6)
---
VPS is already running with the frontend setup on apache2 and working; 82.112.227.196 or system.beyond-behavior.net
Need to move the backend written in node.js and teach me how to do that next time.
The system status is as follows:
root@rqb:/home/rqb# node -v
v20.16.0
root@rqb:/home/rqb# npm -v
10.8.1
---
root@rqb:/home/rqb# sudo systemctl status apache2
● apache2.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled; preset: enabled)
Active: active (running) since Fri 2024-08-09 13:59:32 UTC; 50min ago
Docs: https://httpd.apache.org/docs/2.4/
Main PID: 1605 (apache2)
Tasks: 55 (limit: 9488)
Memory: 11.8M (peak: 12.3M)
CPU: 367ms
CGroup: /system.slice/apache2.service
├─1605 /usr/sbin/apache2 -k start
├─3199 /usr/sbin/apache2 -k start
└─3200 /usr/sbin/apache2 -k start
---
root@rqb:/var/www/html/beyond-behavior# ls -al
total 336
drwxr-xr-x 6 root root 4096 Aug 9 14:33 .
drwxr-xr-x 3 root root 4096 Aug 9 14:00 ..
drwxr-xr-x 2 root root 4096 Aug 9 14:01 backup
-rw-r--r-- 1 root root 6797 Aug 9 14:31 invoiceServerPdf.js
-rw-r--r-- 1 root root 6631 Aug 9 14:31 invoiceServerXlsx.js
drwxr-xr-x 2 root root 4096 Aug 9 14:05 log
drwxr-xr-x 107 root root 4096 Aug 9 14:33 node_modules
-rw-r--r-- 1 root root 48962 Aug 9 14:33 package-lock.json
-rw-r--r-- 1 root root 515 Aug 9 14:31 package.json
drwxr-xr-x 2 root root 4096 Aug 9 14:37 public
-rw-r--r-- 1 root root 249123 Aug 9 14:31 template.xlsx
---
root@rqb:/etc/apache2/sites-available# nano system.beyond-behavior.net.conf
<VirtualHost *:80>
ServerAdmin ***
ServerName system.beyond-behavior.net
ServerAlias system.beyond-behavior.net
DocumentRoot /var/www/html/beyond-behavior/public/
ErrorLog /var/www/html/beyond-behavior/log/error.log
CustomLog /var/www/html/beyond-behavior/log/access.log combined
RewriteEngine on
RewriteCond %{SERVER_NAME} =system.beyond-behavior.net
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
---
root@rqb:/# sudo ufw status
Status: active
To Action From
-- ------ ----
Apache Full ALLOW Anywhere
OpenSSH ALLOW Anywhere
Apache Full (v6) ALLOW Anywhere (v6)
OpenSSH (v6) ALLOW Anywhere (v6)
---