Skip to content

Forz70043/node-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-api

A simple Node.js project that queries multiple external APIs to get real-time data on air quality and weather for a given city.

Requirements

Setup

  1. Clone this repository:
git clone https://github.com/yourusername/node-api.git
cd node-api
  1. Install dependencies:
npm install

Create a .env file with your API keys:

AIRVISUAL_API_KEY=your_airvisual_api_key
OPENWEATHER_API_KEY=your_openweather_api_key

Run the app:

node index.js

Visit the endpoint in your browser or make a GET request:

http://localhost:3000/api/info/{city}

Replace {city} with the name of the city (e.g., London). License

MIT License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published