Skip to content

Run own backend

Alex Myakinkii edited this page Feb 7, 2019 · 10 revisions

Clean ubuntu 14.04.5 LTS setup (digital ocean droplet)

sudo apt-get update
sudo apt-get install build-essential -y

curl -sL | sudo -E bash -
sudo apt-get install -y nodejs

apt-get install git -y
git clone

cd minesNF/
npm install

This installs even node v4.9.1 as for some reasons instead of version 6 I got 8

As I do not care much about security of this stuff all this can be done as local root.

After this we even can put upstart script to /etc/init to run the shit

description " nodeJs server"
author      "Alex Myakinky"

# used to be: start on startup
# until we found some mounts weren't ready yet while booting:
start on started mountall
stop on shutdown

# Automatically Respawn:
respawn limit 99 5

# Customize port if you want
# env HTTPPORT=80

    exec /usr/bin/node /root/minesNF/ServMain.js >> /var/log/node.log 2>&1
end script

Reboot after adding the config.

You can verify it is working by going to the old ui at http://your_hostname_or_ipaddress:8080

This must be enough to be able to connect to your server via the app.

Add new UI to server

Assuming we are in the same dir where minesNF backend was cloned into:

git clone
cd minesNF/client/
ln -s ../../ui5client/webapp ui5
You can’t perform that action at this time.