This is a To Do App built with Spring Boot WebFlux, R2DBC, and PostgreSQL. The app showcases the use of Spring Boot WebFlux and R2DBC to build reactive applications. It features a RESTful API built with Spring WebFlux functional endpoints that handle requests. The app uses R2DBC to connect to a PostgreSQL database, making it an efficient and reliable choice for building reactive applications.
- JDK 11 or higher
- Maven 3.6.3 or higher
- Clone the repository to your local machine.
- Make sure you have Java 11 or higher installed on your machine.
- Make sure you have Maven installed on your machine.
- In the terminal, navigate to the project root directory.
- Run the command
mvn clean package
to build the project and generate a jar file. - Run the command
java -jar target/restful-spring-1.0-SNAPSHOT.jar
to start the server. - The server will be running on
http://localhost:8080/
.
Note: You might need to configure your database connection in the application.properties
file
before running the project.
- Run the application:
java -jar target/<jar-file-name>.jar
- The application will run on
http://localhost:8080
- GET
/tasks
: Retrieve all tasks. - GET
/tasks/{id}
: Retrieve a task by ID. - POST
/tasks
: Create a new task. - PUT
/tasks/{id}
: Update a task. - DELETE
/tasks/{id}
: Delete a task.
{
"title": "Task title",
"taskDescription": "Task description",
"completed": false
}
{
"id": "48ad4c4b-4f8c-4ca6-b5f5-5f6c5e23806c",
"title": "Task title",
"taskDescription": "Task description",
"completed": false
}