A barebones Node.js app using Express 4.
This application supports the Getting Started with Node on Heroku article - check it out.
Make sure you have Node.js and the Heroku CLI installed.
$ git clone https://github.com/anoriqq/line-news-bot-heroku.git # or clone your own fork
$ cd line-news-bot-heroku
$ npm install
$ npm start
Your app should now be running on localhost:5000.
Create new channel on the LINE Developer console
$ heroku create
$ heroku config:set CHANNEL_SECRET=<LINEのチャネルシークレット>
$ heroku config:set CHANNEL_ACCESS_TOKEN=<LINEのチャネルアクセストークン>
$ git push heroku master
or
then, add webhook URL (https://<heroku app domain>/webhook/
) to the channel.
For more information about using Node.js on Heroku, see these Dev Center articles: