https://github.com/jayakrishnan-mk/serverless-api-dynamodb
AWS Lambda for backend compute , API Gateway for REST endpoints , DynamoDB for NoSQL storage
https://github.com/jayakrishnan-mk/serverless-api-dynamodb
aws aws-lambda awssam backend-development cloudcomputing crud-api dynamodb nodejs serverless
Last synced: 2 months ago
JSON representation
AWS Lambda for backend compute , API Gateway for REST endpoints , DynamoDB for NoSQL storage
- Host: GitHub
- URL: https://github.com/jayakrishnan-mk/serverless-api-dynamodb
- Owner: Jayakrishnan-mk
- Created: 2025-05-04T14:15:09.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-07-22T07:04:59.000Z (3 months ago)
- Last Synced: 2025-07-22T08:48:20.395Z (3 months ago)
- Topics: aws, aws-lambda, awssam, backend-development, cloudcomputing, crud-api, dynamodb, nodejs, serverless
- Language: JavaScript
- Homepage:
- Size: 60.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CRUD DynamoDB Serverless App
This project is a complete Serverless CRUD API built using **AWS SAM (Serverless Application Model)**, **Node.js**, and **DynamoDB**. It's designed for learning and demo purposes, showcasing how to build, test, and deploy a serverless backend on AWS.
---
## โ Features
- Create, Read, Update, Delete (CRUD) APIs
- Powered by **AWS Lambda**, **API Gateway**, and **DynamoDB**
- Local testing with `sam local`
- Deployed using `sam deploy --guided`---
## ๐ Project Structure
```
.
โโโ src/ # Lambda function handlers
โโโ events/ # Sample event payloads for testing
โโโ template.yaml # SAM template to define AWS infrastructure
```---
## ๐ Deploy the Application
### Prerequisites
- [Node.js 20+](https://nodejs.org/en/)
- [Docker](https://www.docker.com/products/docker-desktop/)
- [AWS SAM CLI](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html)### Build and Deploy
```bash
sam build
sam deploy --guided
```Youโll be prompted to enter:
- Stack name (e.g., `crud-dynamo-app`)
- Region
- Permission to create IAM roles
- Save config for future runs---
## ๐งช Test Locally with SAM
```bash
sam local invoke putItemFunction --event events/event-post-item.json
sam local invoke getAllItemsFunction --event events/event-get-all-items.json
sam local start-api # run local dev server at http://localhost:3000/
```---
## ๐ Resources
- [AWS SAM Developer Guide](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/what-is-sam.html)
- [Serverless Application Repository](https://aws.amazon.com/serverless/serverlessrepo/)---
## ๐ Project Status
โ **Done!**
This project was successfully built and deployed using AWS SAM, showcasing a functional CRUD API with DynamoDB and Lambda.