Skip to content

Commit 1b478d8

Browse files
author
Hyunje Jun
committed
Implement basic features of kitchensink example
The features are copied from line-bot-sdk-go. https://github.com/line/line-bot-sdk-go/blob/master/examples/kitchensink/server.go
1 parent 3a660db commit 1b478d8

File tree

9 files changed

+383
-11
lines changed

9 files changed

+383
-11
lines changed

examples/kitchensink/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/downloaded/*

examples/kitchensink/README.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,26 @@ A kitchen-sink LINE bot example
44

55
## How to use
66

7-
Install deps:
7+
### Install deps
88

9-
```bash
10-
$ npm install
9+
``` shell
10+
npm install
1111
```
1212

13-
Configuration:
13+
Also, FFmpeg and ImageMagick should be installed to test image and video
14+
echoing.
1415

15-
``` bash
16-
$ export CHANNEL_SECRET=YOUR_CHANNEL_SECRET
17-
$ export CHANNEL_ACCESS_TOKEN=YOUR_CHANNEL_ACCESS_TOKEN
18-
$ export PORT=1234
16+
### Configuration
17+
18+
``` shell
19+
export CHANNEL_SECRET=YOUR_CHANNEL_SECRET
20+
export CHANNEL_ACCESS_TOKEN=YOUR_CHANNEL_ACCESS_TOKEN
21+
export BASE_URL=https://your.base.url # for static file serving
22+
export PORT=1234
1923
```
2024

21-
Run:
25+
## Run
2226

23-
``` bash
24-
$ node .
27+
``` shell
28+
node .
2529
```

0 commit comments

Comments
 (0)