README.md
221 Bytes
mother project : LINEBOT
최근 수정일 : 2019/5/31
new project : 페이스북 메신저 기반 컴공/소융 강의평가 봇
Description : Everytime 강의 평가 및 과 홈페이지를 기반으로 함.
1. app.js - API Endpoint ( Receive requests from Facebook page and start to make request to Facebook Graph API ) - Open port ( app.listen(PORT_NUMBER) ), Perform verification ( app.get('/webhook') ) - Use/Call Handler function from controller.js 2. controller.js - Handle Message or Postback - Use/Call model.js / template.js to make response - Make request to Facebook's Graph API ( Messaging Platform ) using response, sender_psid 3. template.js - Make JSON format using data given from controller.js - Return JSON format ( to be 'response' object in controller.js ) 4. models.js - Get data from database. - Give data required by controller.js.