This is a simple To-Do List backend built using Spring Boot and AWS DynamoDB Local.
It provides RESTful APIs to create, read, update, and delete (CRUD) tasks.
- Create, view, update, and delete tasks
- DynamoDB Local integration (no AWS account required)
- RESTful API endpoints
- UUID-based task IDs
- Ready for front-end integration (React, Angular, etc.)
- Spring Boot 3
- Java 17
- AWS DynamoDB Local
- AWS SDK v2 (DynamoDB Enhanced Client)
- Maven
git clone https://github.com/singhscala/todoapp-backend.git
cd todoapp-backendDownload DynamoDB Local from the official AWS documentation: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html
After downloading and extracting, open the folder in your terminal and run:
cd DynamoDBLocal
java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDbDynamoDB Local will start on: http://localhost:8000
Make sure your src/main/resources/application.properties looks like this:
spring.application.name=todoapp
aws.dynamodb.endpoint=http://localhost:8000
aws.region=us-west-2
aws.accessKey=dummy
aws.secretKey=dummy
server.port=8080mvn spring-boot:run✅ Now your backend runs on: http://localhost:8080
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/tasks | Get all tasks |
| GET | /api/tasks/{id} | Get task by ID |
| POST | /api/tasks | Create a new task |
| PUT | /api/task/{id} | Update an existing task |
| DELETE | /api/task/{id} | Delete a task |
Prachi Singh
💼 GitHub: @singhscala