Write the name of a city, get the temperature currently there. Based on Build a Weather Website in 30 minutes with Node.js + Express + OpenWeather. Uses Node, Express, EJS and the OpenWeatherMap API.
Download the repository and install node modules:
npm install
This project uses OpenWeatherMap API. Define an enviroment variable with your API key as follows:
export API_KEY=myAPIKey
Start the server:
node server.js
Go to localhost:3000
write the name of a city and press "Get Weather" button.