Run own backend
Clean ubuntu 14.04.5 LTS setup (digital ocean droplet)
sudo apt-get update sudo apt-get install build-essential -y curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash - sudo apt-get install -y nodejs apt-get install git -y git clone https://github.com/myakinkii/minesNF.git 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 "minesnf.com nodeJs server" author "Alex Myakinky firstname.lastname@example.org" # 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 respawn limit 99 5 # Customize port if you want # env HTTPPORT=80 script 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
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 https://github.com/myakinkii/ui5client.git cd minesNF/client/ ln -s ../../ui5client/webapp ui5