Setup localhost server to test Line API - MUMT-IT/mis2018 GitHub Wiki

Run ngrok

  • download and install ngrok
  • setup free grok account and get auth token

$ ngrok config add-authtoken <enter your auth token here>

  • run ngrok with the same port number with Flask app
  • edit endpoint url in Line developer webpage accordingly

$ ngrok http --host-header=rewrite 127.0.0.1:5000