Welcome to my project! This is the backend for a Todo List application that allows users to create, read, update, and delete tasks. The application is built using Spring Boot and DynamoDB. The frontend will be built using React.js. With this App, users can effortlessly manage their tasks and events, helping them stay organized and on top of their to-do list.
- Java
- Spring Boot
- DynamoDB
- Postman
- Create tasks
- Read tasks
- Update tasks
- Delete tasks
To run the application locally, follow these steps:
- Clone the repository
- Install Java and Maven
- Configure your AWS credentials and region in the
application.propertiesfile - Run the application using the
mvn spring-boot:runcommand
To use the application, you can send HTTP requests to the API using a tool like Postman. Here are the available endpoints:
- GET /api/todo: Get all tasks
- POST /api/todo: Create a task
- GET /api/todo/{id}: Get a task by ID
- PUT /api/todo/{id}: Update a task by ID
- DELETE /api/todo/{id}: Delete a task by ID
Here are some examples of HTTP requests you can make to the API using Postman:
-
Get all tasks:
- Method: GET
- URL:
http://localhost:8080/api/todo
-
Create a task:
-
Method: POST
-
URL:
http://localhost:8080/api/todo -
Body:
jsonCopy code
{ "title": "Buy groceries", "description": "Buy milk, bread, and eggs", "completed": false }
-
-
Get a task by ID:
- Method: GET
- URL:
http://localhost:8080/api/todo/1
-
Update a task by ID:
-
Method: PUT
-
URL:
http://localhost:8080/api/todo/1 -
Body:
jsonCopy code
{ "title": "Buy groceries", "description": "Buy milk, bread, and eggs", "completed": true }
-
-
Delete a task by ID:
- Method: DELETE
- URL:
http://localhost:8080/api/todo/1
- Add authentication and authorization
- Add pagination to the GET all tasks endpoint
- Add sorting to the GET all tasks endpoint