Showing all posts tagged nodejs:

Alexa skill kits connect to AWS EC2 with nodejs

事前準備 1. 申請AWS服務,並開啟一個EC2的instance (參考這裡)2. 在 instance安裝node js (參考這裡)3. 申請 Let's Encrypt SSL憑證 (這裡不贅述) 步驟說明1. 申請Alexa skill kits 服務 (參考這裡)2. EC2 nodejs 設定3. Alexa skill kits web server 設定與測試1. 申請Alexa skill kits 服務 可直接參考我之前的文章,的步驟 2,3 2....

Nodejs server side Http post範例

利用Nodejs Http 發送資料 const http = require('http'); const querystring = require("querystring"); var data = { username: 'abc', password: 'cdf'}; var buffer = ''; //填寫header const options = { hostname: 'localhost', port: 80, path: "/login...