This is a simple web application that demonstrates CRUD operations through a backend API. It is built using Java Spring Boot and communicates with JavaScript to display the data on a web page.
Before running the application, make sure you have the following installed:
- Java Development Kit (JDK)
- Maven
- MySQL
-
Clone the repository:
git clone https://github.com/your-username/todo-app.git
-
Navigate to the project directory:
cd todo-app
-
Build the application using Maven:
mvn clean install
-
Run the application:
java -jar target/todo-app.jar
-
Open your web browser and visit http://localhost:8080 to access the Todo App.
The following API endpoints are available:
GET /task/{id}
: Get a specific todo by IDGET /task
: Get all todosPOST /task
: Create a new todoPATCH /task/{id}
: Update an existing todoDELETE /task/{id}
: Delete a todoDELETE /tasks
: Delete all todo
- Java Spring Boot
- JavaScript
- HTML
- CSS
- The application requires a MySQL database for storing the todo data.
- You can configure the database connection settings in the
application.properties
file. - The application uses Maven as the build tool to manage dependencies and build the project.
- The frontend of the application is built using JavaScript, HTML, and CSS.
- Feel free to explore and modify the code to fit your needs.