a8dde2dd
Surasit Yerpui
firstcommit
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# line-bot-nodejs-starter
starter point to create new line bot project
## How it work
Start express server to handle webhook from LINE
# Install
Clone and run
```
npm install
```
Modify `config.json`
```json
{
"port" : "3000",
"channelAccessToken": "YOUR_CHANNEL_ACCESS_TOKEN",
"channelSecret": "YOUR_CHANNEL_SECRET"
}
```
Run
```
npm start
```
then you can access [http://localhost:3000](http://localhost:3000)
Use [ngrok](https://ngrok.com/) to expose your local url
```
path/to/ngrok http 3000
```
config webhook url in developer console then enjoy your bot!
## Author
Sitthi Thiammekha
|