This is a basic starter kit for Serverless w/ Typescript & Serverless Offline pre-installed.
# Install n to easily swap between NodeJS versions
npm i -g n
# Currently, the latest NodeJS runtime version supported by AWS is v12.x.y.
# You'll want to grab the last official release (12.19.0).
n 12.19.0
# Make sure you have the correct version installed (should show v12.19.0)
node -v
# Install Serverless globally
npm i -g serverless
# Install the dependencies in this repository
yarn install
# Start serverless locally
yarn start
# You should now be able to hit: http://localhost:3000/dev/health
Name | Description |
---|---|
Serverless | Serverless Framework |
Serverless Typsecript Plugin | Serverless Typescript Plugin |
Serverless Offline | Serverless Offline (Local) |