Install-fest Phase Two

For the Second phase of "install-fest", we'll install or verify the installation of the following tools on our machines:

  • Node.js/npm & nodemon

  • Postman
  • Heroku/Heroku CLI




PLEASE NOTE: if you have a linux machine, here are some resources that might be more ideal for your computer


Node.js

Node is a JavaScript engine for the backend. We use it to power our web servers and connect to our databases.

brew install node

Verify the installation afterwards by running:

node -v
npm -v

The above commands should display versions without any errors. To verify that all the required permissions are set correctly, try to install a package such as the useful nodemon globally:

npm install -g nodemon







Installing Postman

Postman is a collaboration platform for API development. We can use it to design, build, and test APIs in conjunction with our teammates, and to support developer adoption.

We'll mostly use Postman to test API's in SEIR-Flex.

Click here to navigate to the download page for Postman.




Heroku

What is Heroku? ... the Website says it best!

Heroku is a platform as a service based on a managed container system, with integrated data services and a powerful ecosystem, for deploying and running modern apps. The Heroku developer experience is an app-centric approach for software delivery, integrated with today’s most popular developer tools and workflows - Heroku.com

Click here to sign up for heroku!




Installing the Heroku CLI

The Heroku CLI makes it easy to create and manage apps in your Heroku account.

Click here to find the links to download and install it for your operating system.




Verifying your installation

To verify your CLI installation, use the heroku --version command:

heroku --version
heroku/7.0.0 (darwin-x64) node-v8.0.0

You should see heroku/x.y.z in the output.




Getting started

After you install the CLI, run the heroku login command.

You’ll be prompted to enter any key to go to your web browser to complete login. The CLI will then log you in automatically.

heroku login
heroku: Press any key to open up the browser to login or q to exit
 ›   Warning: If browser does not open, visit
 ›   https://cli-auth.heroku.com/auth/browser/***
heroku: Waiting for login...
Logging in... done
Logged in as me@example.com

If you’d prefer to stay in the CLI to enter your credentials, you may run heroku login -i.

heroku login -i
heroku: Enter your login credentials
Email: me@example.com
Password: ***************
Two-factor code: ********
Logged in as me@heroku.com

The CLI saves your email address and an API token to ~/.netrc for future use.

For more information, see Heroku CLI Authentication.

Now you’re ready to create your first Heroku app! We'll learn how to do this later on in Unit 2!