What’s Digital Ocean?
The tagline “Digital Ocean provides blazing fast SSD cloud servers at only $5/month” does not do cloud provider Digital Ocean justice.
In addition to the performance of the server instance (a droplet in Digital Ocean lingo), Digital Ocean has become a favorite of developers for the following reasons:
- low cost performance
- Droplets standup fast, very fast ( 59 seconds fast )
- Static external IP address for every droplet
- Droplet’s disk, RAM, and IP address are all reserved while the droplet is off
- Snapshot feature allows you to save the droplet after you have destroyed the instance.
- Preserving costs and making for a fast standup of your configuration for developer Sandbox preserving costs)
- You will be able to create a new droplet from the snapshot image anytime to bring it back online.
For the purposes of these installation instructions we’ll be installing on a 512 MB RAM, Ubuntu 12.04 ”Droplet”. However, because all StrongLoop components are all installed via npm, if you already have Node installed you are good to go, regardless of the OS.
If you want to watch a quick video on how it all goes down in about 2 minutes, check out this video:
Step 1: Sign up for Digital Ocean if you haven’t already
Step 2: Install the latest version of Node
There’s a couple of different ways to install Node.js, but here’s one that is pretty straight-forward and will get you up and running quickly. Some alternatives are discussed here.
Log into your Droplet and run:
$ sudo apt-get update
$ sudo apt-get install python-software-properties python g++ make
$ sudo add-apt-repository ppa:chris-lea/node.js
$ sudo apt-get update
$ sudo apt-get install nodejs
Step 3: Check your version of Node
$ node -v
Step 4: Install the StrongLoop Command Line Interface (cli)
$ npm install -g strong-cli
Note: If you get permission errors, re-run commands with sudo
Step 5: Verify your installation
$ slc version
Step 6: Install the sample LoopBack application
$ slc example
$ cd sls-sample-app
Step 7: Install and setup the StrongOps agent
$ slc strongops --register
Step 8: Provide your full name, email and password when prompted.
Step 9: Create a StrongLoop account to access your StrongOps dashboard
Note: Use the “email” you provided in Step #5 as your “email” plus use the same ”password”.
Step 10: Your dashboard is ready here:
Note: You will not see any data until your application has been running for a few minutes. So, please make sure to execute the next step.
Step 11: Explore the sample application by running it, starting a small load generator and then visiting the URL below:
$ slc run .
$ slc run bin/create-load.js
To view the LoopBack sample application go to the external facing IP that Digital Ocean assigned to your Droplet plus specifying post 3000 like so:
http://[Your Droplet’s IP]:3000
You can get them answered by the development team in a variety of ways including StackOverflow and Google Groups. Here’s how to interact.