Deploy Node.js application in Heroku using Eclipse
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Deploy Node.js application in Heroku using Eclipse

on

  • 481 views

Deploy Node.js application in Heroku using Eclipse

Deploy Node.js application in Heroku using Eclipse

Statistics

Views

Total Views
481
Views on SlideShare
319
Embed Views
162

Actions

Likes
0
Downloads
1
Comments
0

11 Embeds 162

http://www.shivasoft.in 125
http://www.jitendrazaa.com 14
http://www.slideee.com 6
http://feeds.feedburner.com 6
http://eabdtechnologies.blogspot.se 2
https://www.linkedin.com 2
http://www.linkedin.com 2
http://eabdtechnologies.blogspot.in 2
http://eabdtechnologies.blogspot.com 1
http://feedly.com 1
http://eabdtechnologies.blogspot.co.uk 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Deploy Node.js application in Heroku using Eclipse Presentation Transcript

  • 1. Jitendra Zaa
  • 2. Youtube Video URL  http://youtu.be/jVkG9Kb07fc
  • 3. Tools and Technology  Language – Node.js  Platform – Heroku  Git – Bitbucket using SSH key  IDE – Eclipse  Eclipse Plugins  Egit  Heroku  NodeEclipse
  • 4. Setup Bitbucket (Optional)
  • 5. Setup SSH Key in Bitbucket and Heroku  Create RSA SSH Key from Eclipse.  Save that key in BitBucket as well as Heroku.  Explained in article link provided in next slides.
  • 6. Introduction to EGit  Check this article :  http://www.shivasoft.in/blog/salesforce/salesforce-git- eclipse-egit-better-and-distributed-source-control/
  • 7. Introduction to Heroku Plugin  Check this –  http://www.shivasoft.in/blog/java/creating-first- application-in-heroku-using-eclipse/
  • 8. Creating Blank Heroku Application  In Eclipse, Click on Create New Project  And select Heroku, assuming you have already installed Heroku plugin in Eclipse.  Refer article explained in starting of this presentation
  • 9. Create sample Node.js startup File Create Web.js file with following code var express = require("express"); var logfmt = require("logfmt"); var app = express(); app.use(logfmt.requestLogger()); app.get('/', function(req, res) { res.send('Hello World!'); }); var port = Number(process.env.PORT || 5000); app.listen(port, function() { console.log("Listening on " + port); });
  • 10. Create Package.json  Open root application path in console  Run “npm init” command and provide all information  Now run below command  npm install express logfmt --save
  • 11. Create Package.json  Add below entry in generated package.json { "engines": { "node": "0.10.x" } }
  • 12. Create Procfile Only one line needs to enter web: node Web.js
  • 13. Commit to Git  First Commit to Local  Then  Heroku
  • 14. Assign Dyno to your application  A dyno is a lightweight container running a single user-specified command  Assign 1 Dyno to your Heroku application which is free
  • 15. How to check logs on Heroku  Navigate to your Node.js application folder and run below command :  Heroku logs
  • 16. Test your application Thanks