LU10.S03 - myFirstServer

Task A: Letting the given script run

  1. A01: Download the provided Zipfile, unzip it, and import the JavaScriptFile into your Webstorm project.
  2. A02: Change the credentials by using your login data, which is only you know.
  3. A03: Request via sql-script the system date from the database and display on your terminal by starting the server with the node command.

Task B: Displaying a table conent

After successful receiving data from the database, we want to display more data on our terminal, e.g. the content of an already existing database table. Follow for that the steps below:

  1. B01: Change the sql statement from SELECT sysdate(); into SELECT * FROM users;
  2. B02: Display the resultset from the database on your terminal by using the node command
  3. B03: Change the order of the sql statement and display the result on your terminal

Solutions

myFirstserver Code Solution

Vocabulary

English German

Volkan Demir