This repository contains a small Todo list web application. It is a complete web stack from frontend to server to database.
It depends only on Java 8 and Maven to build and run.
For details on installing Java 8 and an IDE that includes Maven, see the OOSE Tools page.
The lecture that goes with this code is the OOSE Web Java Lecture.
The code should be directly importable as an existing Maven project into Eclipse or IntelliJ, and should directly build and run from within the IDE.
If you are using IntelliJ, clone the git repository on your computer and then use the IntelliJ Import function to import that clone. Select the pom.xml file as what you want to import (to be clear you are importing it as a Maven project), and you can use the defaults for all other import parameters. Once it is imported you can invoke any of the Maven phases. You can right-click on the Bootstrap class to start the server. Or, set up a run configuration to run Bootstrap.main() -- from the Run menu select Edit Configurations, add (+) a new Application configuration, and set the main class to be com.todoapp.Bootstrap. The green triangle will then launch the server.
If you instead want to compile and run from the command line, you will need the Maven command line installed and invoke:
mvn package
java -jar target/todoapp1-1.0-SNAPSHOT.jar
Now simply point your browser to http://localhost:8080 to use the application.