Skip to content

GiovanniPFilho/weather-api

Repository files navigation

🌤️ Weather API - Node.js + Express

A simple REST API built with Node.js and Express to fetch current weather data from the OpenWeatherMap API by city name.


🚀 Features

  • 🔍 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.)

🛠️ Technologies Used


⚙️ Environment Variables

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


📦 Installation

# Clone the project
git clone git@github.com:GiovanniPFilho/weather-api.git

cd weather-api

nvm use

# Install dependencies
npm install

npm run start

About

Current weather data from the OpenWeatherMap API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published