Skip to content
Merged
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
6 changes: 3 additions & 3 deletions aws-node-http-api-typescript/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<!--
title: 'AWS Simple HTTP Endpoint example in NodeJS with Typescript'
description: 'This template demonstrates how to make a simple HTTP API with Node.js and Typescript running on AWS Lambda and API Gateway using the Serverless Framework v1.'
description: 'This template demonstrates how to make a simple HTTP API with Node.js and Typescript running on AWS Lambda and API Gateway using the Serverless Framework v3.'
layout: Doc
framework: v1
framework: v3
platform: AWS
language: nodeJS
authorLink: 'https://github.com/serverless'
Expand All @@ -12,7 +12,7 @@ authorAvatar: 'https://avatars1.githubusercontent.com/u/13742415?s=200&v=4'

# Serverless Framework Node with Typescript HTTP API on AWS

This template demonstrates how to make a simple HTTP API with Node.js and Typescript running on AWS Lambda and API Gateway using the Serverless Framework v1.
This template demonstrates how to make a simple HTTP API with Node.js and Typescript running on AWS Lambda and API Gateway using the Serverless Framework v3.

This template does not include any kind of persistence (database). For more advanced examples, check out the [serverless/examples repository](https://github.com/serverless/examples) which includes Typescript, Mongo, DynamoDB and other examples.

Expand Down
2 changes: 1 addition & 1 deletion aws-node-http-api-typescript/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const hello: Handler = (event: any) => {
statusCode: 200,
body: JSON.stringify(
{
message: 'Go Serverless v1.0! Your function executed successfully!',
message: 'Go Serverless v3.0! Your function executed successfully!',
input: event,
},
null,
Expand Down
9 changes: 4 additions & 5 deletions aws-node-http-api-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
"version": "0.1.0",
"dependencies": {},
"devDependencies": {
"@types/aws-lambda": "^8.10.61",
"serverless": "^1.78.1",
"serverless-offline": "^6.5.0",
"serverless-plugin-typescript": "^1.1.9",
"typescript": "^3.9.7"
"@types/aws-lambda": "^8.10.92",
"serverless": "^3.1.1",
"serverless-plugin-typescript": "^2.1.1",
"typescript": "^4.5.5"
}
}
5 changes: 2 additions & 3 deletions aws-node-http-api-typescript/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
service: serverless-http-api-typescript
frameworkVersion: '2'
frameworkVersion: '3'

provider:
name: aws
runtime: nodejs12.x
lambdaHashingVersion: '20201221'
runtime: nodejs14.x

functions:
hello:
Expand Down