Follow this project,
I use my first language(ruby) to build this on serverless,
so you can use this project in others case.
- LINE developer account
- LINE Messaging API
- Install serverless via npm
$ npm install -g serverless
- Setup your AWS ceritficate
export AWS_ACCESS_KEY_ID=<your-key-here>
export AWS_SECRET_ACCESS_KEY=<your-secret-key-here>
- Insert you line bot secret & key
config.channel_secret = "YOUR_LINE_CHANNEL_SECRET"
config.channel_token = "YOUR_LINE_CHANNEL_TOKEN"
- Deploy the webhook function
npm install
serverless deploy