Until now, we’ve been providing an integrated installer for StrongLoop that included a package of Node.js, plus the StrongLoop command-line tool (slc), example apps, and so on, in a versioned distribution. We did this because we believed developers wanted an easy, one-shot way to get our software. However, as StrongLoop has gathered interest, we’ve come to understand that most people would prefer it to be available from the Node Package Manager (npm) instead.
So, starting today, we’ll be distributing StrongLoop through npmjs.org, which means that you will be able to install it from the command line like any other Node module.
Our goals are to:
- Ease adoption by distributing our software using the standard Node tool, npm.
- Deliver new features to users as fast as possible, generally at the end of our two-week development sprints.
Install StrongLoop with npm
Here’s the installation instructions for Mac OSX that will get the StrongLoop cli, LoopBack, StrongOps and a sample Node application installed.
(Need instructions for other platforms or cloud providers? Check out the Getting Started guide.)
These instructions assume you already have Node and no previous version of StrongLoop installed. If you need to install Node or upgrade your current version of StrongLoop, the instructions are here.
1. Install the StrongLoop Command Line Interface (cli):
$ npm install -g strong-cli
Note: If you get permission errors, re-run commands with sudo
2. Verify your installation
$ slc version
3. Install the sample LoopBack application
$ slc example
$ cd sls-sample-app
4. Install and setup the StrongOps agent
$ slc strongops --register
5. Provide your full name, email and password when prompted.
6. Create a StrongLoop account to access your StrongOps dashboard
Note: Use the “email” you provided in Step #5 as your “email” and ”username” plus use the same ”password”.
7. Your dashboard is ready here:
You will not see any data until your application has been running for a few minutes.
8. Explore the sample application by running it and then visiting the URL below:
$ slc run .