황지민

Update README.md

Showing 1 changed file with 32 additions and 0 deletions
......@@ -47,6 +47,38 @@ Contributions are what make the open source community such an amazing place to b
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request
<!-- PROCESS -->
## Process
1. Recevie city name by user
-> <p><label>지역이름 : </label><input type="text" name="city" placeholder="Input city"></p>
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 -->
## Contact
......