Starter kit for line bot on back4app
Based on back4app-express-starter-kit
- babel (7.0.0-beta, preset-stage-0)
- webpack (HMR)
- eslint (airbnb/base, prettier)
- Install Back4App Cli
- Configure Back4App Account Keys
npm run init-cloud-code
- Configure Parameters
- Back4App > Dashboard > Core > Config > Create a parameter
- Add
LINE_BOT_CHANNEL_ACCESS_TOKEN
,LINE_BOT_CHANNEL_SECRET
as a String type
- Set
PARSE_SERVER_DATABASE_URI
as an environment variable- Get the URI from: Back4App > Server Settings > Core Settings
- or, your local MongoDB
npm start
npm run build
npm run deploy
- When you veriy a webhook url in the LINE Developers Console, it will fail because it sends events with invalid reply tokens. You can ignore the step. Webhook works well without verifying.
- In most cases of the dev phase, reply tokens will be invalid. So, replying requests will be redirected to the console output.
- These dependencies are provided by "Parse Server 2.6.5", so will not be packed.
[email protected]
is excluded because of its vulnerabilities(1, 2).[email protected]
and its reference[email protected]
are excluded because of its vulnerability(1).