C

Corona_Dust

코로나가 미세먼지 증감에 미친 영향

edb2e018 license · by jimin


About The Project

이 프로젝트는 요즘 미세먼지가 많이 줄은 원인이 코로나라고 하는데 정말로 코로나가 시작되고 미세먼지 수치가 과거보다 줄었느냐를 알아보기 위해서 서울 지역별로 과거와 현재의 수치를 비교해보는 프로젝트 입니다.

Built With

This section should list any major frameworks that you built your project using. Leave any add-ons/plugins for the acknowledgements section. Here are a few examples.

Installation

  1. Get a free API Key at https://data.seoul.go.kr/
  2. Clone the repo sh git clone https://github.com/your_username_/Project-Name.git
  3. Install NPM packages sh npm install npm install xml-js npm install urlencode npm install ejs npm install jquery

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Process

  1. Recevie city name by user -> localhost:3000
  2. Get data from api -> url = Dust_URL+Dust_ServiceKey+Dust_URL2+item+Dust_Place; -> request(url,function(error,res,body){}
  3. Manufacture data -> // ex) Dust_Month_2020 async function Dust_Month_2020(Dust_Month_2020){ for(let i=0;i<Dust_Month_2020.length;i++) { await DelayNode_2020(Dust_Month_2020[i]); } } Dust_Month_2020([202002,202003,202004,202005,202006]);
  4. All data is manufactured -> Return check = true
  5. Send data to ejs -> if(check == true){ res.render('index',{ Feb_Dust_2020, Mar_Dust_2020, April_Dust_2020, May_Dust_2020, June_Dust_2020, City }) }
  6. localhost:3000/city -> Result Page

License

MIT License

Copyright (c) [2020] [HwangJiMIn]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Contact

My Name - Hwang_ji_min - jim1286@khu.ac.kr