This project sets up a simple HTTP server using Node.js that responds with "Hello World" to GET requests on the root route.
simple-node-server
├── src
│ ├── server.js # Entry point of the application
│ └── routes
│ └── index.js # Defines the application routes
├── package.json # npm configuration file
└── README.md # Project documentation
-
Clone the repository:
git clone <repository-url> -
Navigate to the project directory:
cd simple-node-server -
Install the dependencies:
npm install -
Start the server:
npm start -
Open your browser and go to
http://localhost:3000to see the "Hello World" response.