Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .env.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
SLACK_SIGNING_SECRET=A
SLACK_CLIENT_ID=B
SLACK_CLIENT_SECRET=C
STATE_SECRET=D
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"lint:eslint": "eslint \"**/*.{js,ts}\"",
"lint:openapi": "openapi lint",
"db:install": "serverless plugin install --name serverless-dynamodb-local && serverless dynamodb install",
"db:start": "serverless dynamodb start",
"dev": "serverless offline",
"db:start": "serverless dynamodb start --stage=local",
"dev": "serverless offline --stage=local",
"wait": "npm-run-all wait:*",
"wait:db": "wait-on tcp:8000",
"wait:dev": "wait-on tcp:3000",
Expand Down Expand Up @@ -41,17 +41,17 @@
"jest": "27.0.4",
"npm-run-all": "^4.1.5",
"prettier": "2.3.1",
"serverless": "^2.72.2",
"serverless": "^3.12.0",
"serverless-api-gateway-throttling": "^1.2.2",
"serverless-dynamodb-local": "^0.2.40",
"serverless-offline": "^8.4.0",
"serverless-webpack": "^5.6.1",
"serverless-offline": "^8.5.0",
"serverless-webpack": "^5.7.0",
"supertest": "^6.1.3",
"ts-jest": "27.0.3",
"typescript": "^4.3.4",
"wait-on": "^5.2.0",
"webpack": "^5.39.1",
"webpack-cli": "^4.7.2"
"webpack": "^5.72.0",
"webpack-cli": "^4.9.2"
},
"dependencies": {
"@slack/bolt": "^3.9.0",
Expand All @@ -66,4 +66,4 @@
"fp-ts": "^2.11.8",
"io-ts": "^2.2.16"
}
}
}
6 changes: 4 additions & 2 deletions serverless.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
service: lockbot

frameworkVersion: "3"

useDotenv: true

plugins:
- serverless-webpack
- serverless-dynamodb-local
- serverless-offline
- serverless-api-gateway-throttling

provider:
name: aws
runtime: nodejs14.x
lambdaHashingVersion: 20201221
environment:
SLACK_SIGNING_SECRET: ${env:SLACK_SIGNING_SECRET}
SLACK_CLIENT_ID: ${env:SLACK_CLIENT_ID}
Expand Down Expand Up @@ -135,7 +137,7 @@ custom:
accessTokensTableName: ${self:custom.stage}-lockbot-tokens
dynamodb:
stages:
- dev # https://bit.ly/35WR0TT
- local # https://bit.ly/35WR0TT
apiGatewayThrottling:
maxRequestsPerSecond: 200
maxConcurrentRequests: 100
Loading