https://github.com/redgerd/weather-api
A weather API that fetches and returns weather data from a 3rd party API. This project will help you understand how to work with 3rd party APIs, caching, and environment variables.
https://github.com/redgerd/weather-api
Last synced: 3 months ago
JSON representation
A weather API that fetches and returns weather data from a 3rd party API. This project will help you understand how to work with 3rd party APIs, caching, and environment variables.
- Host: GitHub
- URL: https://github.com/redgerd/weather-api
- Owner: Redgerd
- Created: 2024-09-16T01:12:29.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-09-19T16:40:12.000Z (9 months ago)
- Last Synced: 2024-11-13T15:14:23.327Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 695 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Weather-API
In this project, instead of relying on our own weather data, we will build a weather API that fetches and returns weather data from a 3rd party API. This project will help you understand how to work with 3rd party APIs, caching, and environment variables.

The idea for this project was taken from [roadmap.sh](https://roadmap.sh). You can find more details about the original project [here](https://roadmap.sh/projects/weather-api-wrapper-service).## Setup
1. Clone the repository
2. Install dependencies with `npm install`
3. Set up your `.env` file with your API key and weather API URL:```bash
API_KEY=your_api_key_here
weatherApiUrl=https://api.weatherapi.com/v1/current.json