boot up an EC2 instance with a node webserver and an HTML5 template in minutes
Free 30 minute one click server http://www.instantserver.io
For a more permanent solution check out https://www.digitalocean.com
Reference https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager#ubuntu-mint
$ sudo apt-get update
$ sudo apt-get install python-software-properties python g++ make
optional $ sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:chris-lea/node.js
$ sudo apt-get update
$ sudo apt-get install nodejs
http://stackoverflow.com/questions/6084360/node-js-as-a-simple-web-server
a) Install connect with NPM
$ npm install connect
b) Create server.js file with this content:
var connect = require('connect');
connect.createServer(
connect.static(__dirname)
).listen(8080);
c) Run with NodeJS
$ node server.js
Download boilerplate and copy to server
Open up the server IP in the browser on port 8080
Done!
$ npm install forever -g
$ forever start -l forever.log -o out.log -e err.log server.js
Make forever start script on reboot $ crontab -u root -e @reboot /usr/lib/node_modules/forever/bin/forever start /root/server.js