A modern Java + Spring Boot + JavaScript To-Do List application featuring priority sorting and a RESTful API.
Screenshot from use on a computer:
- Priority Sorting: Tasks are marked as High, Medium, or Low and are automatically sorted by priority.
- REST API: Backend built with Java 25 and Spring Boot.
- Modern UI: Clean interface using Bootstrap and JavaScript Fetch API.
- Persistent: Uses H2 file-based database which stores files safely to remain intact after updates.
-
Clone the repo on your local machine
-
Package the project into an executable
.jarfile:mvn clean package(will appear in/target/) -
Using SSH, WinSCP, FileZilla or any other service, get into your server
-
Create a directory for the app (e.g. todolist-app)
-
Transfer the .jar file into that directory
-
Create a service file so the service restarts in case of a server reboot or crash:
sudo nano /etc/systemd/system/todo.service -
Copy and paste this into the file: (change the
UserandWorking Directoryas needed)
[Unit]
Description=Java Todo List Service
After=network.target[Service]
User=ubuntu
WorkingDirectory=/home/ubuntu
ExecStart=/usr/bin/java -jar /home/ubuntu/todo-list-0.0.1-SNAPSHOT.jar
SuccessExitStatus=143
Restart=always
RestartSec=10[Install]
WantedBy=multi-user.target -
Start/manage the service:
sudo systemctl daemon-reload
sudo systemctl enable todo.service
sudo systemctl start todo.service -
Finished!