This project checks the air quality information of a nearest city to GPS coordinates using iqair API
- Checks Air Quality Information
- Run CRON JOB to check “air quality“ for the Paris zone every minute
- Get the datetime where the paris zone is the most polluted
https://documenter.getpostman.com/view/5916628/VVBXxmFY
- Clone the project from github.
git clone https://github.com/devwalex/air-quality.git
- Download repository
- Uncompress to your desired directory
npm install
- You will find a file named
.env.example
on root directory of project. - Create a new file by copying and pasting the file and then renaming it to just
.env
cp .env.example .env
- The file
.env
is already ignored, so you never commit your credentials. - Change the values of the file to your environment. Helpful comments added to
.env.example
file to understand the constants.
- To run migrations
npm run migrate
- To reset migrations
npm run migrate:reset
npm start
You will know server is running by checking the output of the command npm start
npm test
Note: Make sure you set up the test variable in the .env
file
Usman Salami
MIT