This is a simple NodeJS + Express application. This application serves as a basic template for a web server using NodeJS for the backend, Express as the web application framework.
This application serves a simple web server that listens on defined port, default: 3000
.
You can run the application in one of the following ways:
-
Press
F5
. This will start the application in debug mode. -
Open a terminal by going to 'View' -> 'Terminal'. Then run:
npm run dev
This will start the application in development mode.
- Open a terminal.
- Type the following command:
curl http://localhost:3000
- Press 'Enter' to make the request.
- Click on the Thunder Client icon on the activity bar on the side. If you can't find it, you can search for 'Thunder Client' in the 'View' -> 'Extensions' menu.
- Once Thunder Client is open, click on 'New Request'.
- In the 'Request URL' field, enter the URL of your application (e.g., http://localhost:3000) and select the HTTP method from the dropdown menu.
- Click on 'Send' to make the request.
Happy coding! 🙂