File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 1
1
# bmc-aws-lambda-serverless
2
- The AWS Lambda serverless functions serving the frontend. Setup with AWS API Gateway and AWS DynamoDB.
2
+
3
+ The AWS Lambda serverless functions serving the frontend. Setup with AWS API
4
+ Gateway and AWS DynamoDB.
3
5
4
6
The backend for https://github.com/stefanfranzen/business-model-canvas
5
7
6
8
## Installation
9
+
7
10
```
8
11
npm install
9
12
```
10
13
11
14
## Deploy
15
+
12
16
### All lambdas
17
+
13
18
```
14
19
serverless deploy
15
20
```
21
+
16
22
### One specific lambda
23
+
17
24
```
18
25
serverless deploy --function <lambda name>
19
26
```
20
27
21
28
## Testing
29
+
22
30
### Unit tests
31
+
23
32
```
24
33
npm test
25
34
```
35
+
26
36
### Local lambda with deployed DynamoDB
37
+
38
+ ```
39
+ serverless invoke local --function create --path mocks/create-event.json
40
+ ```
41
+
27
42
```
28
43
{
29
44
"body": "{\"content\":\"hello world\",\"attachment\":\"hello.jpg\"}",
@@ -34,7 +49,9 @@ npm test
34
49
}
35
50
}
36
51
```
52
+
37
53
### The deployed backend in AWS of API Gateway, AWS Lambda's and DynamoDB
54
+
38
55
```
39
56
npx aws-api-gateway-cli-test \
40
57
--username='<YOUR_USERS_EMAIL>' \
You can’t perform that action at this time.
0 commit comments