- 請到 Nodejs 官網 https://nodejs.org/en/download/ 下載並安裝。
- 推薦使用 Visual Studio Code 或 Sublime Text
- 到 github 註冊帳號
- 如果是 Windows 系統安裝 git-for-windows
- git 教學
- 到 heroku 註冊帳號
- 到 facebook developers 申請成開發者帳號
用來做後端伺服器的框架。範例檔案連結
const express = require('express')
const app = express()
app.get('/', function (req, res) {
res.send('Hello World!')
})
app.listen(3000, function () {
console.log('Example app listening on port 3000!')
})
用來處理 HTTP 呼叫的套件。範例檔案連結
const request = require('request')
let address = 'Taipei 101'
let url = `https://maps.googleapis.com/maps/api/geocode/json?address=${address}`
request(url,
function (error, response, body) {
console.log('error:', error) // Print the error if one occurred
console.log('statusCode:', response && response.statusCode) // Print the response status code if a response was received
console.log('body:', body) // Print the HTML for the Google homepage.
})
詳見這個連結
- https://github.com/ntu-csie-train/line-echo-bot-starter
- LINE Business Center https://business.line.me/
- LINE API https://devdocs.line.me/en/#reply-message
- https://github.com/ntu-csie-train/telegram-echo-bot-starter
- set-webhook
- incoming-message
- outgoing-message
- 這個套件可以讓 localhost 的連結被外面連進來,而且還支援 https,適合開發 chatbot 的時候 debug
- Chrome 的插件,可以用來傳送 HTTP request