This task involves setting up a basic web server, deploying it, and exposing an API endpoint that returns specific information about the requester.
[GET] <example.com>/api/hello?visitor_name="Mark"
{
"client_ip": "127.0.0.1", // The IP address of the requester
"location": "London", // The city of the requester
"greeting": "Hello, Mark!, the temperature is 25 degrees Celsius in London"
}
- Axios
- Express
- Nodemon
- Ip-api: For getting the geographical location based on the IP address.
- Openweathermap API: For getting the weather information.
git clone <repository-url>
cd <repository-directory>
npm install