
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
QUESTION 17
-
Code a Node/Express web server by creating a single route that
1. Accepts and processes request messages of any http method (GET/POST/DELETE etc.)
2. Accepts three parameters via the URL where the parameters are to be named larry, curly and moe
3. Concatenates the strings passed via the three parameters
4. Send the concatenated string back to the browser as text in an HTML <p> elementYour web server routes must be able to handle URL localhost:8080/tom/dick/harry
Remember to import necessary npm modules as well as listening to the PORT value specified.
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 4 steps with 2 images

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Table rows are created by using which tag? Group of answer choices <tablerow> <row> <tr> <trow> this is for HTMLarrow_forwardHTTP Error 405.0 - Method Not Allowed The page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used. Hello I keep getting this error when I try to submit the form code which is supposed to have the welcome.php spit the information i put in back to me. Can someone tell me why so I can fix it.arrow_forwardA URL (Uniform Resource Locator) is an identifier used to locate resources on the web. A URL is composed of the following components: Scheme, Host Name (with optional Port Number), Path, (optional) Query String, (optional) Anchor. These components are arranged in the following format:Scheme://Hostname:Port/Path?QueryString#AnchorFor example, in the URL "https://en.wikipedia.org:443/wiki/Kitten?printable=yes&download=no#External_links": "https" is the Scheme, "en.wikipedia.org" is the Hostname, 443 is the Port Number, "wiki/Kitten" is the Path, "printable=yes&download=no" is the Query String, and "External_links" is the Anchor.The Port Number is typically omitted when default port numbers are used by the hostname server (80 for http, 443 for https). When Path and Query String are empty, the '/' character before the Path becomes optional, e.g, as in the url: 'https://en.wikipedia.org'.Write a function url2hostname that takes in a URL and returns the hostname (without the port…arrow_forward
- Edit the existing code to add an admin account that is seperate from the regular user accounts. When logging in using the admin account, the page should redirect you to sales.html Existing code: login.js function Login() {window.location.href = window.location.href.substring(0, window.location.href.lastIndexOf('/')) + "/Login.html"} function ResetPassword() {window.location.href = window.location.href.substring(0, window.location.href.lastIndexOf('/')) + "/resetpassword.html"} function LoginUser() {var userName = document.getElementById("txtUserName").value;var password = document.getElementById("txtPassword").value; var user = JSON.parse(localStorage.getItem("user")); var storedUserName = user.email;var storedPassword = user.password; if (storedUserName && storedPassword) { if (userName.length > 0 && password.length > 0) { if (userName == storedUserName && password == storedPassword) {alert("Logged In");} else {alert("username or password does not match…arrow_forwardUsing the existing code, hardcore code in an Admin account that is seperate from the regular user accounts. Only when logging in using the Admin account should the page should redirect you to sales.html Existing code: login.js function Login() {window.location.href = window.location.href.substring(0, window.location.href.lastIndexOf('/')) + "/Login.html"} function ResetPassword() {window.location.href = window.location.href.substring(0, window.location.href.lastIndexOf('/')) + "/resetpassword.html"} function LoginUser() {var userName = document.getElementById("txtUserName").value;var password = document.getElementById("txtPassword").value; var user = JSON.parse(localStorage.getItem("user")); var storedUserName = user.email;var storedPassword = user.password; if (storedUserName && storedPassword) { if (userName.length > 0 && password.length > 0) { if (userName == storedUserName && password == storedPassword) {alert("Logged In");} else {alert("username or…arrow_forwardWrite a complete code for an HTML page containing a JavaScript program that displays an alert dialog box with your first name and last name on this alert box.arrow_forward
- Use HTML/CSS/JavaScript to build a textbox that accepts a maximum of ten lower-case alphabetic characters. The entering of upper-case alphabetic characters, numeric characters, or special characters are prevented by your code. That is, the prohibited characters are unable to appear in the textbox. Events are to be addressed by JavaScript event listeners. Usage of HTML onEventName attributes are strictly prohibited. Note: you do not have to code a complete working webpage, only necessary code that satisfy the requirements are needed.arrow_forwardIn this project you will use selection lists to store long lists of hypertext links that might overwhelm a page if displayed within a navigation list. The name of a linked page is displayed as the text of a selection list option while the URL is stored as that option's value. By selecting an item from one of the selection list options, the browser will open the web page with that selected URL. To script this action, you will use the event object. One of the properties associated with the event object is as follows: evt.target where evt is the variable name assigned to event object and target is the object that received the event. In this project the target is the option selected by the user from one of the selection lists. The event will be the change event. A preview of the page is shown in Figure 6-39arrow_forwardImplement HTML code that displays the below lists. • One • Two 2. One 2. Two • Threearrow_forward
- Question 2 In HTML5, it is appropriate to nest a pairs of tags, such as "li" tags, within an outer pair of tags, such as "ol" tags, like this: One thingAnother thing O True O False < Previous Ely clear O Searcharrow_forwardjavascript programmingarrow_forward<!-- Write your code here --> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title> Chapter 1, Extend Your Knowledge <p> Benjamin Bain, 9/10/2021 <hr> <p> Guideline 1.1arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education