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 | ... | @@ -47,6 +47,38 @@ Contributions are what make the open source community such an amazing place to b |
47 | 4. Push to the Branch (`git push origin feature/AmazingFeature`) | 47 | 4. Push to the Branch (`git push origin feature/AmazingFeature`) |
48 | 5. Open a Pull Request | 48 | 5. Open a Pull Request |
49 | 49 | ||
50 | +<!-- PROCESS --> | ||
51 | +## Process | ||
52 | +1. Recevie city name by user | ||
53 | +-> <p><label>지역이름 : </label><input type="text" name="city" placeholder="Input city"></p> | ||
54 | +2. Get data from api | ||
55 | +-> url = Dust_URL+Dust_ServiceKey+Dust_URL2+item+Dust_Place; | ||
56 | +-> request(url,function(error,res,body){} | ||
57 | +3. Manufacture data | ||
58 | +-> | ||
59 | +// ex) Dust_Month_2020 | ||
60 | +async function Dust_Month_2020(Dust_Month_2020){ | ||
61 | + for(let i=0;i<Dust_Month_2020.length;i++) | ||
62 | + { | ||
63 | + await DelayNode_2020(Dust_Month_2020[i]); | ||
64 | + } | ||
65 | + } | ||
66 | + Dust_Month_2020([202002,202003,202004,202005,202006]); | ||
67 | +4. All data is manufactured | ||
68 | +-> Return check = true | ||
69 | +5. Send data to ejs | ||
70 | +-> if(check == true){ | ||
71 | + res.render('index',{ | ||
72 | + Feb_Dust_2020, | ||
73 | + Mar_Dust_2020, | ||
74 | + April_Dust_2020, | ||
75 | + May_Dust_2020, | ||
76 | + June_Dust_2020, | ||
77 | + City | ||
78 | + }) | ||
79 | + } | ||
80 | +6. localhost:3000/city -> Result Page | ||
81 | + | ||
50 | <!-- CONTACT --> | 82 | <!-- CONTACT --> |
51 | ## Contact | 83 | ## Contact |
52 | 84 | ... | ... |
-
Please register or login to post a comment