1. Register account
register git
register heroku
register mongolab
create a workspace of nodejs
2. Download package
- apache-maven-3.1.0-bin.tar.gz
- hadoop-1.2.1-bin.tar.gz
- Dropbox-Uploader
- lynx2.8.7.tar.gz
Command
npm init
npm install express -g
npm install grunt-cli -g
npm install grunt-init -g
npm install socket.io
npm install forever -g
npm install coffee-script -g
npm install nodemon -g
3. heroku
heroku login
heroku create
-
run
java -cp target/classes:target/dependency/* hello.App
in nitrous then preview http://my-awesome-box-30153.apne1.nitrousbox.com/ -
git commit -a && git push heroku master
then preivew http://agile-thicket-5152.herokuapp.com/
create-a-java-web-application-using-embedded-tomcat