Serverless service which provides a basic CRUD scaffold.
Make sure that you use Serverless v1.
- Run
serverless install --url https://github.com/pmuens/serverless-crud
to install the service in your current working directory - Next up cd into the service with
cd serverless-crud
- Run
npm install
- Deploy with
serverless deploy
Simply perform requests against the exposed endpoints:
curl -X POST https://XXXX.execute-api.region.amazonaws.com/dev/todos --data '{ "body" : "Learn Serverless" }'
curl https://XXXX.execute-api.region.amazonaws.com/dev/todos
curl https://XXXX.execute-api.region.amazonaws.com/dev/todos/<id>
curl -X PUT https://XXXX.execute-api.region.amazonaws.com/dev/todos/<id> --data '{ "body" : "Understand Serverless" }'
curl -X DELETE https://XXXX.execute-api.region.amazonaws.com/dev/todos/<id>
- Lambda
- API Gateway
- DynamoDB