Skip to content

Commit

Permalink
Info about running localy
Browse files Browse the repository at this point in the history
  • Loading branch information
michalsanger committed Apr 27, 2016
1 parent 164d2fd commit 34ab1d2
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,24 @@ npm test

## Develop
Want to add some logic into bot's responses? Take a look in `functions/webhook/handlers/`

## Deploy
```
sls function deploy --all
```

## Running localy
```
npm run offline
```
and you can send POST requests to [http://localhost:3000/webhook](http://localhost:3000/webhook)

To get an idea about the POST body, enable logging:
```
sls variables set -k LOG_WEBHOOK_MESSAGES -v true
```

deploy, send few messages via Messenger and see the logs:
```
sls function logs webhook
```

0 comments on commit 34ab1d2

Please sign in to comment.