README.md 2.62 KB


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 -> "

    "+지역이름 : +"

    "
  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

Contact

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