$ yarn build
$ yarn start
$ curl -X POST \
-H "Content-Type: application/json" \
-d '{
"type": "test",
"text": "ok bokujyou",
"channel": "websocket",
"user": "user"
}' \
http://localhost:3000/api/messages
$ export AWS_ACCESS_KEY_ID=<>
$ export AWS_SECRET_ACCESS_KEY=<>
$ export AWS_REGION=<>
# or
$ export AWS_PROFILE=<>
# request
$ curl -X POST \
-H "Content-Type: application/json" \
-d '{
"type": "message",
"text": "codebuild <AWS_ROFILE>",
"channel": "websocket",
"user": "user"
}' \
http://localhost:3000/api/messages
$ curl -X POST \
-H "Content-Type: application/json" \
-d '{
"type": "codedeploy-list-app",
"text": "test",
"channel": "websocket",
"user": "user"
}' \
http://localhost:3000/api/messages