New one-click installers: Node.js and Ghost

Today we’re unveiling two new one-click installers: Node.js and Ghost. Both of these applications have been requested often, and we’re happy to be able to bring them to you.

Node.js

Node.js is a platform for running JavaScript applications, especially on the server. Node (as it’s commonly referred to) uses the V8 JavaScript engine from Google Chrome, so you can use the familiar browser language that you know and might love in a whole new environment.

Node has a substantial API, including an HTTP server, so a simple application looks something like this:

var http = require("http");

http.createServer(function(request, response) {
  response.writeHead(200, {"Content-Type": "text/plain"});
  response.write("Hello World");
  response.end();
}).listen(13478);

In fact, you’ll find a hello-world.js script just like this in the Node.js application directory, after you install it with the control panel. You can check out ~/webapps/node_app_name/bin/start and ~/webapps/node_app_name/bin/stop to see how the application runs (or modify them to run your own Node creation).

Node also comes with a package manager called npm, and so does the Node one-click installer. The package manager makes it quick and easy to install Node modules and their dependencies. Your Node application’s copy of npm is available in the application’s bin directory, and it can be used like this:

[demo@web310 ~]$ cd webapps/node_demo/
[demo@web310 node_demo] $ ./bin/npm install underscore
npm http GET https://registry.npmjs.org/underscore
npm http 200 https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/underscore/-/underscore-1.5.2.tgz
npm http 200 https://registry.npmjs.org/underscore/-/underscore-1.5.2.tgz
underscore@1.5.2 node_modules/underscore

Then you can require installed modules just as you’d expect:

[demo@web310 node_demo] $ ./bin/node
> var underscore = require('underscore')._;
undefined
> underscore.map([1, 2, 3], function(num){ return num * 3; });
[ 3, 6, 9 ]

To learn more about Node.js, check out Node.js’s official documentation.

Ghost

Ghost Screenshot

In addition to the Node.js one-click installer, we’ve also added an installer for Ghost, a new, open source blogging application. Ghost is described as “just a blogging platform,” as opposed to more complicated content management systems, like WordPress or Drupal. There’s been a lot of excitement about Ghost, especially because over 5,000 people backed the project on Kickstarter earlier this year.

Because Ghost runs on Node.js, everything you’ve just learned about the Node.js one-click installer also applies to the Ghost installer. To get started with Ghost, add a Ghost application to a website, and then open http://example.com/ghost/signup/ (where example.com is your site’s domain) in your web browser. Ghost comes with a handy example post to teach you some of the basics.

To learn more about Ghost, check out the Ghost Guide, but keep in mind that Ghost is experimental software (its first public release was last week), so you may find yourself breaking new ground.

Whether you’re interested in Node.js or Ghost, give one of the new installers a try. If you have questions or run into problems, then join us in the Q&A Community.

This entry was posted in Ghost, Node.js. Bookmark the permalink.

23 Responses to New one-click installers: Node.js and Ghost

  1. Chris says:

    You guys are awesome!

  2. Rui Qing says:

    SO INCREDIBLY HAPPY! was following detailed instructions to install Ghost and somehow it couldn’t work… Thanks so much for making it an app!

  3. Prajwal says:

    Incredible fast.

    I was waiting to try Ghost, and it is there up! Awesome!
    Awesome!
    Mind = blown.

  4. Don Barthel says:

    Thanks for adding node.js!

  5. Neum says:

    More proof that Webfaction is the best host out there and continuing to separate themselves from the rest of the pack.

  6. Holger says:

    Ghost sounds interestingly simple; but what a great hurdle that it requires node.js!
    Yay, now it is just a click away ;-)
    Thank you!

  7. Rob says:

    Well that’s a day I spent installing it that I’ll never get back.

  8. James says:

    You guys rock. Thanks a ton!

  9. Ram Rachum says:

    Congrats guys! I love you!

  10. Yohei says:

    Thank you so much! This made my day!!

  11. Conor says:

    Are there any plans to integrate Socket.io as well? I know I had a problem last time I tried to use it on Webfaction.

  12. Brett says:

    When I install Ghost, it just says,

    “You’re in! Nice. We’ve put together a little post to introduce you to the Ghost editor and get you started. Go ahead and edit this post to get going and learn how it all works! Getting Started Writing in markdown is really easy. In the left hand panel of Ghost…”

    But there are no instructions of how/where to login, get to the control panel, what my username/password might be, etc.

    Of course, you have to go to example.com/admin, but one might not know that using the one-click installer.

    Just a heads up!

  13. TomG says:

    As one of the Kickstarter supporters of Ghost, but with long-out-of-date admin skills, I was wondering how the heck I would ever get it going on my sites. And now you’ve made it a one-click install on WebFaction. Thank You, guys! :-)

  14. Anton DAnilchenko says:

    Node.js is what I want to try and learn to build my statup. Thank you very much for this good push to do step in better life! Wish you success. And please, continue grow up and improve your services!

    I think, that in near future you show us something like MongoDB to have all stack of technologies to use for build statups. Many thanks!

  15. Scott says:

    I used the new one Webfaction click installer, but even after editing config.js to match my ghost blog URL – it does not update the blog link or twitter pre-pop share URL. Do I need to also restart the Ghost instance via SSH or some other method? Also it’s not clear, do we also need to provide a production IP address:port in the settings as well?

    • Caige Nichols says:

      Yep, log into your box and cd into webapps/[whateveryounamedyourapp] and then run “bin/stop && bin/start” after you change your config.

  16. Ganesh says:

    Amazing, thanks a lot webfaction.

  17. David Miranda says:

    Thank you! You guys rock.

  18. Phil Jones says:

    Very exciting. Thanks for keeping up to date with some of the coolest apps around.

  19. Erwin says:

    Thank you so much webfaction, I’ll never look another host since all my projects works perfectly with you…

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>