Skip to content

Hello world API built using serverless, express, node, and typescript

Notifications You must be signed in to change notification settings

AndyWendt/serverless-express-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serverless Express Example

Installation

pip install awscli --upgrade --user
aws --version
aws configure

Node

Use NVM to manage node versions. I'd recommend ~6.10 since that's what AWS is using.

npm install -g typescript

# Compile the typescript files
tsc
npm install
npm install -g serverless

Usage

Serve Serverless Locally

serverless offline start

curl http://localhost:3000/

Invoke function locally

Docs

serverless invoke local --function api

Deployment

serverless deploy --stage dev --aws-profile your-aws-profile

Removal

serverless remove --stage dev --aws-profile your-aws-profile

Articles & Resources

serverless.yml Reference

Inspiration

Another Code Example

Serverless Offline Plugin

Express, Node, and Typescript

About

Hello world API built using serverless, express, node, and typescript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published