Skip to content

HamzaBenkebil/Airvisual-nodejs-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Airvisual-nodejs-API

This is a simple RESTful API built with Node.js with Express framework, that uses the AirVisual API to display weather data for a specified location.

Installation:

To use this API, you will need to have Node.js and npm and ExpressJs installed on your machine. You can then install the necessary packages by running the following command in your terminal:

  • npm install Make sure that you have mysql server installed on your host then you can create a database named : weatherdb

Usage

To start the API server, run the following command in your terminal:

  • node index.js To start the Unit tests you can run following command:
  • mocha unit_tests.js

Once the server is running, you can make requests to the API endpoints using the following base URL:

API Documentation

For more information on how to use the API endpoints and the response format, please see the API documentation https://www.iqair.com/fr/commercial/air-quality-monitors/airvisual-platform/api.

Credits

This API was built using the AirVisual API to retrieve weather data.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published