This project is to connect LINE bots with Microsoft Teams by using Azure Functions and Messaging API.
- JavaScript
- Azure Account
- LINE Developer Account
-
Start with Azure Portal
-
Search and Select Function App service
-
Click Add and type the detail
- Runtime Stack select 'Node.js'
- Region: SEA
-
Click Review + create
-
Click New function after finish create Function App
- Select 'Webhook + API'
-
After create finish you will get main function is 'HttpTrigger1'
-
Press the View files button on the right hand side to see a list of files in the folder 2 files: index.js and function.json. Create another file, click Add and type the filename 'package.json' and enter.
- Add code below this
{ "version": "1.0.0", "private": true, "description": ""}
-
After add and save, click Console
- Type command below this
npm install npm@latest -g
- After update, type 2 commands
npm install axios
npm install moment
- Type command below this
-
Finish for setup Serverless.