🚀 Master the language of AI with our brand new course: "Prompt Engineering for Everyone" Learn more

Offered By: IBM

Create Your First Server with Server-side JavaScript

In this guided project, you will create a web server with the Node.js server-side JavaScript command line interface (CLI) and launch an app that listens to HTTP requests and returns HTTP response messages.

Continue reading

Guided Project

Cloud Development

539 Enrolled
4.3
(118 Reviews)

At a Glance

In this guided project, you will create a web server with the Node.js server-side JavaScript command line interface (CLI) and launch an app that listens to HTTP requests and returns HTTP response messages.

Node.js is a server-side programming framework that uses JavaScript as its programming language. With the http Node.js module, you can develop an application that listens to HTTP requests and returns HTTP response messages.

In this guided project you will use server-side JavaScript to create an application that returns today's date and time. You will start with an instance of a web server that listens for requests on a specific port. Then you will discover how to use the built-in Node.js command line interface (CLI) to start and stop the server and to check that your application is running. You will practice examining its file contents by using CLI commands, the web browser, and the file explorer. By running a server-side script to require an exported module, you will configure your application to return today's date and time. Then you will execute a client URL (curl) command to ping the application. When you launch the application in a browser, you will see your application with today's date and the time in your own time zone!

This guided project will propel your ability to create and launch web applications that listen to HTTP requests and return HTTP response messages by using server-side JavaScript.

A Look at the Project Ahead
Once you have completed this project, you'll be able to:
  • Use the terminal to git clone and get Node.JS server code
  • Create a web server using Server side Java script
  • Run the server
  • Access the server from the client and get a response from server
What You’ll Need
Just a web browser and an IBM Cloud account!

Everything else is provided to you via the IBM Skills Network Labs environment. This platform works best with current versions of Chrome, Edge, Firefox, Internet Explorer, or Safari.

Your Instructor
Upkar Lidder

Estimated Effort

20 Minutes

Level

Beginner

Skills You Will Learn

JavaScript

Language

English

Course Code

GPXX09JPEN

Tell Your Friends!

Saved this page to your clipboard!

Sign up to our newsletter

Stay connected with the latest industry news and knowledge!