Simple Node JS Server on Ubuntu MEAN one click image
I tried to setup a simple express server using the advice on here: https://www.digitalocean.com/community/tutorials/how-to-use-the-mean-one-click-install-image#further-information
I followed the steps, and now have my main app.js file in the folder /opt/healthPill. I installed the node modules from here successfully.
I have tried to access the server through http://220.127.116.11:3000 with no luck. I also tried http://18.104.22.168/healthPill:3000, and in both cases I get net::ERRCONNECTIONREFUSED returned in my browser (Chrome) console log.
It is worth noting that I could not run the final command in the tutorial, as I did not have grunt installed, nor a gruntfile.js. As a result, I have tried with and without running the truncated command "NODE_ENV=production PORT=80".
I am sorry if this is a really basic question, I am quite new to server config. All I am trying to do is create a small node server with one express POST endpoint. Running the project locally allows this.
Any help would be much appreciated.