Difficulty: beginner
Estimated Time: 2 minutes

Welcome to your first Katacoda Scenario!

Katacoda is cool.

Git clone?

You've completed your first Katacoda scenario!

Don’t stop now! The next scenario will only take about 10 minutes to complete.

Hello World Scenario

Step 1 - Run Command

This is your first step.

Task

This is an example of creating a scenario and running a command

install the request

npm i request

First let's enter node shell

node

Let's make a request

var request = require('request'); request('http://www.google.com', function (error, response, body) { console.log('error:', error); // Print the error if one occurred console.log('statusCode:', response && response.statusCode); // Print the response status code if a response was received console.log('body:', body); // Print the HTML for the Google homepage. });