Serverless Framework
· One min read
Where to start?
npm install -g serverless
-
Setup user access
serverless config credentials --provider aws --key xxxxxxxxxxxxxx --secret xxxxxxxxxxxxxx -
Create project
serverless create --template aws-nodejs --path my-service -
Serverless Deploy
serverless deploy -v
Serverless offline
https://github.com/dherault/serverless-offline
serverless plugin install --name serverless-offline
serverless offline start
Insomnia
Serverless dashbird
Mongodb
$ npm init -y
$ npm i --save-dev serverless-offline
$ npm i --save mongoose dotenv
sls offline start --skipCacheInvalidation