Professional Documents
Culture Documents
Saai 2 Ex 00
Saai 2 Ex 00
Saai 2 Ex 00
Overview
This exercise guides you through the setup of your workstation before you perform the exercises
in this course.
Introduction
Before you can perform the exercises in this course, you must set up your environment, which
includes creating an account on IBM Cloud to access the IBM Watson services and setting up your
workstation with the tools that you need to perform the exercises, such as Postman, cURL,
Node.js, Git, and a text editor.
Objectives
After completing this exercise, you should have:
• An IBM Cloud Lite account.
• Postman installed on your workstation.
• cURL installed on your workstation.
• Node.js installed on your workstation.
• IBM Cloud CLI installed on your workstation
• Git installed on your workstation.
• A text editor installed on your workstation.
Exercise instructions
In this exercise, you complete the following tasks:
__ 1. Create a free IBM Cloud account (IBM Cloud Lite account).
__ 2. Download and install Postman.
__ 3. Download and install cURL.
__ 4. Download and install Node.js.
__ 5. Download and Install IBM Cloud CLI
__ 6. Download and install Git.
__ 7. Download and install a text editor.
Part 1. Creating a free IBM Cloud account (IBM Cloud Lite account)
In this part, you create an IBM Cloud Lite account. This account gives you access to the IBM
Cloud resources that you need to perform the exercises. This account never expires, so you can
continue to use it after the class. For more information about an IBM Cloud Lite account, see
Introducing the IBM Cloud Lite account.
Important: The following list specifies the minimum required browser software for IBM Cloud:
• Chrome: The latest version for your operating system.
• Firefox: The latest regular and ESR versions for your operating system. For more information,
see Mozilla Firefox Extended Support Release.
• Microsoft Edge: The latest version for Windows.
• Safari: The latest version for MacOS.
Note: If you already have an IBM Cloud account, skip to Part 2. “Downloading and installing
Postman”.
You must register with IBM Cloud by providing a valid email address. Your email address acts as
your username for IBM Cloud, and you provide a password for it. The email address that you use
to register with IBM Cloud and the password that you provide on registration also become your
IBM ID. You can use this IBM ID to log in to other IBM websites that require you to enter your IBM
ID and password.
When you sign up to IBM Cloud, you are prompted for your demographic information (such as
your name and country). An email is sent to the email account that you provide in the registration
to confirm that your email account is valid and active.
Note: You must use a valid email for signing up to IBM Cloud because IBM Cloud sends you an
email to verify your account.
__ 4. Click Next.
__ 5. A 7-digit verification code is sent to the email account that you used to create the IBM
Cloud account. Enter the verification code and click Next.
__ 6. After you successfully verify your email account, add your personal information and click
Next.
Important: If you already have an IBM ID that is associated with your email, the following window
opens.
If you already have an IBM Cloud account, click Log in to verify that you can access IBM Cloud.
__ 11. You should now be logged in and redirected to your account’s dashboard. If not, confirm
that you can log in to IBM Cloud:
__ a. Click Log in.
__ b. Enter the email and password that you used to register to IBM Cloud. You should
be able to access the environment.
© Copyright IBM Corp. 2021 8
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
Exercises Guide
You now successfully signed up for an IBM Cloud account. You are ready to log in to IBM Cloud
when directed to do so by the exercises in this course. Close the browser.
Note: If Postman already is installed on your workstation, skip to Part 3.”Downloading and
installing cURL”
Important: To check whether cURL is already installed on your workstation, open a command
prompt (Windows) or terminal (MacOS), type curl –V and press Enter.
If the response is like the following output, then cURL is already installed in your workstation. You
can skip to Part 4, “Download and install Node.js”.
__ 3. Select your operating system from the Show package for: drop-down menu and then click
Select.
Note: The following figures show the installation for Window 64-bit as an example. Follow the
equivalent steps for your operating system.
__ 4. Under Show package for: select Generic and then click Select!
__ 5. Follow the prompts and select the specific options for your operating system. Accept the
defaults if you do not know which options are more suitable for you.
__ 6. The installation wizard recommends an executable file that best fits your choices. Make
sure to select the SSL-enabled version of cURL and click the green download ( )
button to start the cURL executable file download.
Note: For Windows, you might need to choose the type of your OS. For example, if you are using
Windows 64-bit, click the green download button for curl for 64 bit.
__ 8. Open a new command prompt, type curl -V, and press Enter. The version of cURL that
you installed should now be displayed.
Troubleshooting: If the curl command is not recognized, it means that the installation path was not
automatically added to the PATH environment variable. Perform the following steps to add the
cURL installation path to the PATH environment variable:
__ 1. Click the Start menu, and then type environment.
__ 2. Select Edit the system environment variables. The System Properties window opens.
__ 3. In the Advanced tab, click Environment Variables.
Select the PATH or Path variable under System variables (the lower box) and click Edit.
__ 4. This step may vary depending on your Windows version.
__ a. For some Window versions: In the “Variable value” field, add a semicolon (;) at the end
and paste the folder path where the file curl.exe is located. The file is probably either
in the bin or src directory in the curl folder that you extracted. To find the correct path,
right-click curl.exe, click Properties, and copy the Location field. The path looks like
C:\folder\another_folder\..\curl-7.61.1-win64-mingw\bin.
__ b. Windows 10: Click New, in the newly added row paste the folder path where the file
curl.exe is located. The file is probably either in the bin or src directory in the curl
folder that you extracted. To find the correct path, right-click curl.exe, click
Properties, and copy the Location field. The path looks like
C:\folder\another_folder\..\curl-7.61.1-win64-mingw\bin.
__ 5. Click OK to close all windows.
__ 6. Open a new command prompt and enter curl -V. The curl command should be now
recognized.
__ 1. Open a terminal.
__ 2. Run the following command:
ruby -e "$(curl -fsSL
https://raw.githubusercontent.com/Homebrew/install/master/install)" <
/dev/null 2> /dev/null
__ 3. Install cURL by running the following brew command:
brew install curl
Note: Check if Node.js is already installed by typing node –v in a Git Bash/Command Prompt
window. If Node.js already is installed on your workstation, skip to Part 5.”Downloading and
installing IBM Cloud CLI”.
To download and install IBM Cloud Command Line Interface, follow the steps in the IBM Cloud
documentation: https://cloud.ibm.com/docs/cli?topic=cli-install-ibmcloud-cli
End of exercise