A simple REST API built with Node.js and Express to fetch current weather data from the OpenWeatherMap API by city name.
- 🔍 Get current weather by city name
- 🌐 Uses OpenWeatherMap API
- 💡 Simple structure using modern JavaScript (ESModules)
- 🧪 Ready for local testing
- ☁️ Easily extensible for other endpoints (coordinates, forecast, etc.)
Create a .env file in the project root and add like a .env.example
PORT - Select a port OPENWEATHER_API_KEY - You can get your API key for free at: https://openweathermap.org/api
# Clone the project
git clone git@github.com:GiovanniPFilho/weather-api.git
cd weather-api
nvm use
# Install dependencies
npm install
npm run start