You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,7 @@
49
49
50
50
*[Deploying a Proxy API](deploy-proxy-api)– an example of how to create an API Gateway that will proxy all requests directly to a Lambda function
51
51
*[Running Express Apps in AWS Lambda](express-app-lambda)– an example of how to deploy an existing Express app with minimal changes to Lambda
52
+
*[Running fastify Apps in AWS Lambda](fastify-app-lambda)– an example of how to deploy an existing fastify app with minimal changes to Lambda
This is a simple example that shows how to deploy an existing [fastify](https://github.com/fastify/fastify) application, with minimal changes, to AWS Lambda.
4
+
5
+
## Running the example
6
+
7
+
1. run `npm install` to grab the dependencies
8
+
2. run `npm run generate-proxy` to create a simple proxy API for the fastify app
9
+
3. run `npm run deploy` to send everything up to AWS Lambda
10
+
11
+
The third step will print out a URL you can use to access the fastify app.
12
+
13
+
## Updating the app
14
+
15
+
1. Change [`app.js`](app.js)
16
+
2. (Optionally) use `npm install <PACKAGE NAME> -S` to install additional dependencies (always save them to `package.json` using `-S`)
17
+
3. Run `npm run update` to send the new version up to AWS. No need to generate the proxy again
18
+
19
+
## More information and limitations
20
+
21
+
See the [Running Express or fastify Apps in AWS Lambda](https://claudiajs.com/tutorials/serverless-express.html) tutorial.
0 commit comments