# BC-node-server-sample **Repository Path**: mirrors_line/BC-node-server-sample ## Basic Information - **Project Name**: BC-node-server-sample - **Description**: BusinessConnect sample server with NodeJS - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2026-03-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 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](https://developers.line.me/businessconnect/overview) * Signature Validation * Receiving Messages * Sending Messages ## Prerequisite 1. Create the LINE channel on [LINE developers](https://developers.line.me/) 1. Install [nodeJS](https://nodejs.org/), [npm](https://github.com/npm/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 * [body-parser](https://www.npmjs.com/package/body-parser) * [crypto-js](https://www.npmjs.com/package/crypto-js) * [express](https://www.npmjs.com/package/express) * [request](https://www.npmjs.com/package/request) ## Reference * [The Technical Side of LINE Business Connect](http://developers.linecorp.com/blog/?p=3169) * [API Reference for LINE Bussiness Connect](https://developers.line.me/businessconnect/api-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.