Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/atapas/aqi-react
aqi-react is a project created to know the Air Quality Index of various parts of the world. How about a ⭐️?
https://github.com/atapas/aqi-react
air-pollution air-quality air-quality-data air-quality-index airindex airquality create-react-app javascript react react-hooks reactjs
Last synced: 30 days ago
JSON representation
aqi-react is a project created to know the Air Quality Index of various parts of the world. How about a ⭐️?
- Host: GitHub
- URL: https://github.com/atapas/aqi-react
- Owner: atapas
- License: mit
- Created: 2019-11-20T04:24:20.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T01:47:45.000Z (almost 2 years ago)
- Last Synced: 2024-05-01T17:15:56.830Z (7 months ago)
- Topics: air-pollution, air-quality, air-quality-data, air-quality-index, airindex, airquality, create-react-app, javascript, react, react-hooks, reactjs
- Language: JavaScript
- Homepage: https://tapasadhikary.com
- Size: 3.46 MB
- Stars: 14
- Watchers: 3
- Forks: 3
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Project `aqi-react`
aqi-react is a project created to know the Air Quality Index of various parts of the world.This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app) to create the frond-end User Interfaces using ReactJs. At the backend, [Air Quality Programmatic APIs](https://aqicn.org/api/) are used to get the details of the Air Quality.
# What is Air Quality Index(AQI)
An air quality index (AQI) is used by government agencies to communicate to the public how polluted the air currently is or how polluted it is forecast to become.Public health risks increase as the AQI rises. Different countries have their own air quality indices, corresponding to different national air quality standards. More details can be found [here](https://en.wikipedia.org/wiki/Air_quality_index).
# Why is this project Important?
This project was created as a pet project to explain the concepts of reactjs. It has nothing commercial about it. It is with pure learn and share objecives.One can learn following concepts of reactJs:
- React Hook Concepts using, `useState`, `useEffect`, `useRef` etc.
- Uasage of React Forms with Controlled Component
- Show-Hide component in React
- Passing Props# Demo
A Demo of the project [is running here](https://air-quality-index.netlify.com/).# See it in Action
[![AQI](site/flow.gif)](https://tapasadhikary.com)# Running the Project
In the project directory, you can run:
## `yarn install`
Install the dependencies.## `yarn start`
Runs the app in the development mode.
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.The page will reload if you make edits.
You will also see any lint errors in the console.## `yarn build`
Builds the app for production to the `build` folder.
It correctly bundles React in production mode and optimizes the build for the best performance.The build is minified and the filenames include the hashes.
Your app is ready to be deployed!To learn React, check out the [React documentation](https://reactjs.org/).
# Deployment Status
[![Netlify Status](https://api.netlify.com/api/v1/badges/6cd2087c-70df-4618-8fff-7a4239351f68/deploy-status)](https://app.netlify.com/sites/air-quality-index/deploys)
Liked what I do? Thank You Very Much!