All Projects → line → BC-node-server-sample

line / BC-node-server-sample

Licence: Apache-2.0 license
BusinessConnect sample server with NodeJS

Programming Languages

javascript
184084 projects - #8 most used programming language

BC sample server with NodeJS

This sample is aimed to let developers have a picture about the BC server development.

It is a echo server that shows some functions of LINE Bussiness Connect

  • Signature Validation
  • Receiving Messages
  • Sending Messages

Prerequisite

  1. Create the LINE channel on LINE developers
  2. Install nodeJS, npm

Configuration

  • Install the node modules
    $ npm install
  • Add configurations.json under config/beta folder (remeber to remove the comments)
    {
      "port": ,             // Port where you put your service.
      "channelUrl": "",     // https://api.line.me 
      "channelToken": "",   // Get your channelToken in https://developers.line.me/channels/tech/CHANNEL_ID
      "channelId": "",      // Your channel id
      "eventToChannelId":"",// Fixed value. 1383378250
      "eventType": "",      // Fixed value. 138311608800106203
      "channelSecret": ""   // Refer to https://developers.line.me/channels/CHANNEL_ID
    }

Run

    $ node server.js

Dependecies

node_modules

Reference

Note

  • This sample is built as a simple testbed. Please take care the settings and security staff if you want to use this sample as production enviroment.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].