Skip to content

mathew-fleisch/simple-air-quality

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Air Quality Index

This project uses EPA data to show the current AQI for SF, using their API. You can pass an optional zip query param in the url, to define the zip code; default is 94109. Wildfires suck.

Installation

This small website can run this in a docker container, or locally via node/nodemon. First you must acquire an api key from the EPA's website, and create a file 'key.json' with the api key in quotes.

git clone git@github.com:mathew-fleisch/simple-air-quality.git
npm install
PORT=3000 node index.js

OR VIA DOCKER

git clone git@github.com:mathew-fleisch/simple-air-quality.git
docker build -t air-quality .
docker run --name air-quality -p 3000:80 air-quality:latest

Usage

http://localhost:3000/?zip=94109

About

Show air quality index for SF

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published