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
Concept explainers
Question
- Create a folder called coffeerun_backend to store your project files.
2. Inside that folder, run the npm init command to initialize your application. Enter Titan Coffee Run for the name and use main.js as the entry point.
3. In main.js, create a simple server that listens on port 3000.
4. We're going to start with handling one simple request right now. You will need an if statement that check's the url and the request method for the incoming request!
a. A GET request to your server with a url of "index.html" should return a response containing "Welcome, to Titan Coffee Run" and a SUCCESS status code. The content type should be text/html.
b. A GET request to anything other than "index.html" should return a response containing "Sorry, the page you are looking for is not here." with a page not found status code. The content type should be text/html and contain the PAGE NOT FOUND status code.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 3 steps
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
- I need to edit my seperator page for my "company" i know its in the C: and its called sysprint.sep and i put it on my desktop and open it with note pad. my seprerator page needs to have a title and datearrow_forwardYou use lpstat and determine that a user named User1 has placed two large printjobs in the queue for Printer1 that have yet to start printing. They have print job IDs ofPrinter1-17 and Printer1-21, respectively. Which command would you use to removethese two jobs from the print queue?a. cancel Printer1-17 Printer1-21b. cancel –u Printer1-17 Printer1-21c. cancel –a Printer1-17 Printer1-21d. cancel 17 21arrow_forwardObjective: . Create a game that uses Swing opponents that can generate and handle evenarrow_forward
- Create a node server with the following requirements: Use the dotenv package to manage your development environment variables. PORT should be 3000 HOST should be localhost Endpoints /dotted Only GET requests are allowed. This endpoint will respond with the HTML content type. This endpoint will take two required query parameters: word1 and word2. The endpoint will take the two words and create a string that is the two words separated by enough “.” characters to make the length of the string 30. For example if word1 is “turtle” and word2 is “153” the output should be: turtle.....................153 The response body should be the string wrapped in a <pre> tag. /fizzBuzz Only GET requests are allowed. This endpoint will respond with the HTML content type. This endpoint will take two required query parameters: start and end. The endpoint will iterate from start to end and for each number it will: Show “Fizz” if the number is divisible by 3. Show “Buzz” if the number is…arrow_forwardUse the useradd command to add your last name as a user. Cat /etc/passwd and take a screenshot of the terminal window.arrow_forwardTry giving these 2 commands $ echo cat$ cat echoExplain the differences between the output of each command.arrow_forward
- In termina, install the paho-mqtt module with pip using the following command: Sudo pip3 install paho-mqtt Create a new folder by the name of lab_6 and create a new python file mqtt_script_1.py In the file, TYPE the following code: import paho.mqtt.client as mqtt # The callback for when the client receives a CONNACK response from the server. def on_connect(client, userdata, flags, rc): print("Connected with result code "+str(rc)) # Subscribing in on_connect() means that if we lose the connection and # reconnect then subscriptions will be renewed. client.subscribe("etec224_mqtt_test/") # The callback for when a PUBLISH message is received from the server. def on_message(client, userdata, msg): print(msg.topic+" "+str(msg.payload)) client = mqtt.Client() client.on_connect = on_connect client.on_message = on_message client.connect("broker.emqx.io", 1883, 60) client.loop_forever() Create another file py and add the following code to it.…arrow_forwardIn JAVA Programming Create an RMI application for employees that will allow the recording of their attendance. Please let the program perform the following: Create a GUI that requires two values (username and password) with a button to log in and a button to register. JSON file/s will be used by the server to store all employee credentials needed for an employee to log in to the application successfully.arrow_forwardWrite the lines that you could use in your user cron table to schedule the /bin/myscript command to run:a. every Wednesday afternoon at 2:15 PMb. every hour on the hour every day of the weekc. every 15 minutes on the first of every monthd. only on February 25th at 6:00 PMe. on the first Monday of every month at 12:10 PMarrow_forward
- Regex. Using only the \D command with the “one or more” regex character appended and the “EXACTLY 5 character” {5} with the regex for digits, parse the following text string completely. You may need to use multiple character matches for the final solution. I didn't watch 80210 but I heard that it was a fun show.arrow_forwardCreate a node server with the following requirements: Use the dotenv package to manage your development environment variables. PORT should be 3000 HOST should be localhost Endpoints /dotted Only GET requests are allowed. This endpoint will respond with the HTML content type. This endpoint will take two required query parameters: word1 and word2. The endpoint will take the two words and create a string that is the two words separated by enough “.” characters to make the length of the string 30. For example if word1 is “turtle” and word2 is “153” the output should be: turtle.....................153 The response body should be the string wrapped in a <pre> tag. /fizzBuzz Only GET requests are allowed. This endpoint will respond with the HTML content type. This endpoint will take two required query parameters: start and end. The endpoint will iterate from start to end and for each number it will: Show “Fizz” if the number is divisible by 3. Show “Buzz” if the number is…arrow_forwardI have posted this multiple times and people keep giving me answers that don't correspond to the question or is unloadable. So please read this carefully. Answer the operand given below on the bottom left and the fill in its value that is on the bottom right. Please make it loadable before sending as previous tutors sent a black page and please answer what is being asked in the question !! Again bottom left is the operand and please fill in its value which is on the bottom right..arrow_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