This project demonstrates a simple task management application built with Spring Boot, JTE (Java Template Engine), and HTMX. It showcases how to create a responsive web application with server-side rendering and dynamic updates.
- Java 23
- Spring Boot 3.3.4
- JTE (Java Template Engine)
- HTMX (for dynamic frontend updates)
- Maven (for dependency management and build)
src/main/java/dev/danvega/tasks/
Application.java
: Main Spring Boot application classTask.java
: Task model classTaskController.java
: Controller handling HTTP requestsTaskRepository.java
: Repository for managing tasks
src/main/jte/
: JTE templates (not visible in the provided code)src/test/java/dev/danvega/tasks/
ApplicationTests.java
: Basic application context testTaskControllerTest.java
: Unit tests for TaskController
- View a list of tasks
- Add new tasks
- Delete existing tasks
- Responsive updates without full page reloads (using HTMX)
-
Ensure you have Java 23 and Maven installed on your system.
-
Clone the repository:
git clone [repository-url] cd [repository-name]
-
Build the project:
mvn clean install
-
Run the application:
mvn spring-boot:run
-
Open a web browser and navigate to
http://localhost:8080
Run the tests using Maven:
mvn test
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open-source and available under the MIT License.