Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
modul:m290:learningunits:lu08:aufgaben:02 [2024/10/30 14:47] – angelegt vdemir | modul:m290:learningunits:lu08:aufgaben:02 [2024/11/06 16:55] (aktuell) – vdemir | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | ====== LU10.A02 - myFirstServer ====== | + | ====== LU10.A03 - myFirstServer ====== |
===== Requirements | ===== Requirements | ||
Zeile 7: | Zeile 7: | ||
* Only teaching materials, no websearch, no use of ai. | * Only teaching materials, no websearch, no use of ai. | ||
* Webstorm Codeeditor | * Webstorm Codeeditor | ||
+ | * {{ : | ||
* Expected result: | * Expected result: | ||
- | * A JavaScript | + | * A JavaScript |
===== Assignments ===== | ===== Assignments ===== | ||
- | As always, our first program on the server is a small script designed to greet the world with the infamous “Hello World”. | ||
- | - Open your Webstorm editor and establish a JavaScriptfile. Name ist // | + | ==== Task A: Letting the given script |
- | - Write in this script | + | After being able to handle |
- | - Generate more terminal outputs by using arrays, for iterations and console.log() function. e.g. // | + | |
- | - Open a terminal window by clicking the terminal-icon at the left lower rim of Webstorm. | + | |
- | - Install all missing JS packages, that Webstorm requires from you. | + | |
- | - Start your server | + | |
- | - If everything | + | |
+ | - A01: Download the provided Zipfile, unzip it, and import the JavaScriptFile into your Webstorm project. | ||
+ | - A02: Change the credentials by using your login data, which is only you know. | ||
+ | - 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: | ||
+ | |||
+ | - B01: Change the sql statement from SELECT sysdate(); into //SELECT * FROM users;// | ||
+ | - B02: Display the resultset from the database on your terminal by using the node command | ||
+ | - B03: Change the order of the sql statement and display the result on your terminal | ||
===== Solution ===== | ===== Solution ===== | ||
- | [[modul: | + | [[modul: |
===== Vocabulary ===== | ===== Vocabulary ===== | ||
^ English ^ German ^ | ^ English ^ German ^ | ||
- | | preparatary work | Vorarbeit | + | | ... | ... | |
- | | infamous | berühmt-berüchtigt | | + | |
---- | ---- | ||
[[https:// | [[https:// |