Nodejitsu

Save time managing and deploying your node.js app. Code faster with jitsu and npm

Node Knockout 2012!

About the author

Name
Location
Worldwide
nodejitsu nodejitsu

Node Knockout is just a few hours away and Nodejitsu is proud to be the official contest deployment platform! As everyone is gearing up to get into the ring, here are some helpful reminders.

Don't want to hack alone?

Take a look at the NKO locations page for hosted backspaces around the world.

If you're in NY, the Nodejitsu team has partnered with Levo League to provide a chill, comfy space with healthy meals and drinks just south of Union Square. RSVP here.

Node Knockout Deployment Instructions!

Introduction to Jitsu deployment

TL;DR

$ git clone https://github.com/nko3/[slug] myapp
$ cd myapp
$ sudo npm install -g jitsu
$ jitsu login ## username and password provided on your NKO team page
$ jitsu deploy

Installing

To install Jitsu, all you have to do is run: npm install -g jitsu

Hint: If npm throws an error, try using sudo npm install -g jitsu.

Setting up Jitsu

Once you install Jitsu, you will need to login with the password that was provided to your team by NKO. This login, and only this login, will need to be used for each team member. NKO will not accept submissions that are under another Nodejitsu account.

To login, use: jitsu login

Hint: If you get an error when logging in, try using one of the following:

  • jitsu conf set protocol http
  • jitsu conf set host api.nodejitsu.com

Deploying

Before developing your app, you should clone the repository provided to your team by NKO. This will follow the pattern of nko3/[slug]. For example, if your team is named "Node Bandits", your repository would be nko3/node-bandits.

If you do not have access to this repository, let someone know immediately. This repository provides a skeleton of what NKO is expecting you to submit when you deploy your application.

Once you have this repository checked out, you can code your application however you see fit. Once you're done, deploy your application to our cloud by running jitsu deploy in the directory containing the package.json file that was provided by your nko3/[slug] repository.

Warning: Make sure you keep version numbers synced across team members. If a team member trying to deploy an application with version 0.0.1 while another team member has deployed 0.0.2, the server will reject the deploy.

Remember:

  • nko3/[slug] should be nko3/your-team-name. For example, a team named "Node Bandits" would be nko3/node-bandits.
  • You get one login for Nodejitsu per team. Use it, because your submissions won't be accepted from another account.
  • Keep version numbers synced amongst your team. Using different versions could, and probably will, cause unintended effects.

Going deeper

Jitsu has a lot of features including deploying old snapshots, getting running logs, setting environment variables, and even creating databases. More info can be found by just typing jitsu at the command line or in the Nodejitsu Handbook.

Help

You can visit us online at our homepage. You can find out more information about Jitsu on Github. As always, you can also find us on IRC on Freenode on ##nodejitsu.