This project implements a Todo API using Spring Boot with PostgreSQL, Spring Data JPA for ORM, Liquibase for migrations, and JWT for authentication.
Copy the .env.example
file to a new file named .env
, and then set the environment configuration in the .env
file.
cp .env.example .env
- Using Docker Compose to initialize the project:
docker compose up -d
- Start a terminal session in the app container
docker compose exec app sh
- Install dependencies for development
./gradlew clean build -x test
- Run migrations
./gradlew liquibaseUpdate
- Start the server for development
./gradlew bootRun
Run the test suite using:
./gradlew test
Check code quality with:
./gradlew check
docker build -t todo-api-springboot:1.0.0 .
docker run --name todo-api-springboot -p 8080:8080 --env-file .env -d todo-api-springboot:1.0.0
Distributed under the MIT License. See LICENSE for more information.