0%
serverlessaws

Serverless Framework

Dipjyoti
1 min read

alt text

Where to start?

npm install -g serverless

alt text

  • Create IAM user

  • Setup user access
    serverless config credentials --provider aws --key xxxxxxxxxxxxxx --secret xxxxxxxxxxxxxx

  • Create project
    serverless create --template aws-nodejs --path my-service

  • Serverless yml

  • Serverless Deploy
    serverless deploy -v

alt text

Serverless offline

https://github.com/dherault/serverless-offline

hljs bash
serverless plugin install --name serverless-offline
serverless offline start
hljs bash

alt text

Insomnia

alt text

Serverless dashbird

Mongodb

alt text

hljs bash
$ npm init -y
$ npm i --save-dev serverless-offline
$ npm i --save mongoose dotenv
sls offline start --skipCacheInvalidation
hljs bash