Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Make a folder as your working space, name it test1. Create the server application including two routes: home route / and /test1. Name your server

Make a folder as your working space, name it "test1". Create the server application including two routes: home route "/" and "/test1". Name your server file server.js . Implement it according to the following specifications. The server must make use of the "express" module The server must listen on port number process.env.PORT or 8080 When start the server, it must output: "Express http server listening on port" - to the console, where port is the port the server is currently listening on (ie: 8080) The home route "/" must return the text in HTML statement, which will be displayed as the following screenshot. If the user request to this route usin

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mobile Communications

Authors: Jochen Schiller

2nd edition

978-0321123817, 321123816, 978-8131724262

Students also viewed these Programming questions

Question

Describe how to construct a cost-volume-profit chart.

Answered: 1 week ago