This is just a simple task manager software (aka TODO App) as a small tech demo demonstrating Spring Boot 3.1 with PostgreSQL, Vanilla JavaScript using the fetch API, Web-Components, lit-HTML and Bootstrap.
The application is configured for the database specified in the accompanying docker-compose.yml file. If you want to use a different database, you need to modify the application.properties file.
To start the database, you can use either Docker Desktop or IntelliJ (Services), or navigate to the root directory of the project on the command line:
$ docker compose up --detachThis command starts the database in the background. To check its status, use the following command:
$ docker ps --allTo stop the database, use the following command:
$ docker compose downThe container is configured to store the database data in a Docker volume, so the data will be retained when the database is started again.
To view the volumes, use the following command:
$ docker volume lsTo delete the data volumes, use the following command:
$ docker volume rm task_manager_task_manager_db_dataNow you can compile the Spring Boot application with:
$ ./mvnw clean installIf the database is available and configured, you can start the application with the following command:
$ ./mvnw spring-boot:runTo build a docker container of the app, you can use the spring-boot-maven plugin by running this command:
$ ./mvnw spring-boot:build-imageYou can test the complete functionality using the Swagger-UI, which is available at http://localhost:8080/swagger-ui.html.