This is a simple ToDo List API built using Java Spring Boot that supports basic authentication. It allows you to manage your tasks with basic CRUD operations (Create, Read, Update, Delete).
- User registration with email and password
- User login via Basic Authentation
- Manipulate tasks: View, Create, Update
Before you begin, ensure you have the following installed on your system:
- Java Development Kit (JDK) 17
- Maven (for building and running the project)
- PostgreSQL
This API uses Basic Authentication for securing the endpoints. When making requests, provide your username and password as Base64-encoded credentials in the Authorization
header as follows:
Authorization: Basic <Base64(username:password)>
-
Clone the repository to your local machine.
-
Open the project in your IDE.
-
Configure the database settings in
src/main/resources/application.properties
:spring.datasource.url=jdbc:postgresql://localhost:5432/todolist spring.datasource.username=postgres spring.datasource.password=postgres spring.jpa.hibernate.ddl-auto=create-drop
Modify the URL, username, and password to match your database configuration.
-
Build and run the application:
mvn spring-boot:run
The API will be accessible at http://localhost:8080
.