Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started