Permalink
..
Failed to load latest commit information.
_assets update Developer Console Sep 25, 2018
src/main Revert "Update copyright year." Jul 23, 2018
README.md Add README.md. Mar 30, 2017
build.gradle Revert "Update copyright year." Jul 23, 2018

README.md

sample-spring-boot-echo

sample-spring-boot-echo is a tiny sample bot application based on Spring Boot.

Usage

Run this sample bot using Gradle.

../gradlew bootRun -Dline.bot.channelToken=YOUR_CHANNEL_TOKEN \
                   -Dline.bot.channelSecret=YOUR_CHANNEL_SECRET

or if you finished create src/main/resources/application.yml file based on src/main/resources/application-template.yml. You can start configured web server just hitting

../gradlew bootRun

You need to pass the following options.

  • line.bot.channelToken: Your Channel access token
  • line.bot.channelSecret: Your Channel secret

For more information about configuration way, refer Spring Boot Reference - 24. Externalized Configuration.

Deploy on Heroku

Deploy this module on Heroku.

Step 1

Get the Channel access token and Channel secret from the Channel Console.

Step 2

Tap the deploy button.

Deploy

Step 3

Fill in the form and run your instance.

Step 4

Tap the Manage App button and copy the name of your Heroku instance.

Step 5

Set the webhook URL for your Channel on the Channel Console using the following URL: https://${YOUR_HEROKU_APP_NAME}.herokuapp.com/callback