https://github.com/pmuens/serverless-crud
Serverless CRUD service
https://github.com/pmuens/serverless-crud
Last synced: 6 months ago
JSON representation
Serverless CRUD service
- Host: GitHub
- URL: https://github.com/pmuens/serverless-crud
- Owner: pmuens
- Created: 2016-10-06T20:55:47.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-04-22T20:35:52.000Z (over 7 years ago)
- Last Synced: 2025-04-24T03:13:07.348Z (6 months ago)
- Language: JavaScript
- Homepage: http://serverless.com
- Size: 3.2 MB
- Stars: 128
- Watchers: 6
- Forks: 28
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Serverless CRUD
Serverless service which provides a basic CRUD scaffold.
## Installation
Make sure that you use Serverless v1.
1. Run `serverless install --url https://github.com/pmuens/serverless-crud` to install the service in your current working directory
2. Next up cd into the service with `cd serverless-crud`
3. Run `npm install`
4. Deploy with `serverless deploy`## How to use
Simply perform requests against the exposed endpoints:
### Create
```bash
curl -X POST https://XXXX.execute-api.region.amazonaws.com/dev/todos --data '{ "body" : "Learn Serverless" }'
```### Read all
```bash
curl https://XXXX.execute-api.region.amazonaws.com/dev/todos
```### Read one
```bash
curl https://XXXX.execute-api.region.amazonaws.com/dev/todos/
```### Update
```bash
curl -X PUT https://XXXX.execute-api.region.amazonaws.com/dev/todos/ --data '{ "body" : "Understand Serverless" }'
```### DELETE
```bash
curl -X DELETE https://XXXX.execute-api.region.amazonaws.com/dev/todos/
```## AWS services used
- Lambda
- API Gateway
- DynamoDB