Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Create a folder called titan_backend to store your project files. 2. Inside that folder, run the npm-init command to create a new package.json 3.

1. Create a folder called titan_backend to store your project files.

2. Inside that folder, run the npm-init command to create a new package.json

3. Add a subdirectory under titan_backend named app

4. In your app folder, create a server.js file. a. In server.js, create a simple server that listens on port 3000.

5. We're going to start with handling one simple request right now.

a. A GET request to your server with a url of "index.html" should return "Welcome, to Titan Community Bank" and a success status code.

b. A GET request to anything other than "index.html" should return "Sorry, the page you are looking for is not her." with a page not found status code.

I made an attempt and did not see the "Welcome, to Titan Community Bank" message. Could you please do a step by step answer. The other answer provided on the forum was incorrect.

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

More Books

Students also viewed these Databases questions