Deploy Files to the Server
We first should SSH onto our new server.
On Windows we can use Putty as our SSH client. SSH means 'Secure Shell'.
Download and Install Putty, and add your server to the Session configuration page.
Now connect to your brand new server.
First thing to do, is to run apt-update to ensure that your server has an up to date list of all the latest packages available.
Now to deploy the files using Secure File Transfer Protocol (SFTP).
On windows, you can use WinSCP
Download it from https://winscp.net/eng/index.php and install it.
Add your servers configuration and then connect.
Using the WinSCP explorer interface, navigate to the /var/ folder on your server and create a new folder called www (If it doesn't exist already)
Then create another folder, inside the www called minigames
Now copy your project into the new minigames folder.
You will only need the package.json and the ./dist/ folder and all of it's contents. We do not need the ./src/ folder and any of it's contents since we won't be compiling TypeScript on the server.
Go back to your SSH session in Putty again, and check for npm
On a new server, it may not be installed, so if it says,
Then we should install npm
Now check for npm again
And you should see a version number displayed.