./mvnw install
And then launch the server:
java -jar target/h2ms-0.0.1-SNAPSHOT.jar
And visit http://localhost:8080/ in your browser.
To see an example End Point visit http://localhost:8080/events/create in your browser.
You can also build and run a docker container, see below.
See Spring Boot Docker. Basically:
./mvnw install dockerfile:build
And then:
docker run -d -p 8080:8080 cscie599/h2ms
Alternatively (to not keep the container running after ctrl-c):
docker run --rm -it -p 8080:8080 cscie599/h2ms
In the project root:
docker-compose up
- Start Kitematic
- Go into Docker CLI
- If not done already, set user permissions
Set-ExecutionPolicy -Scope CurrentUser Unrestricted - Then
./buildrun.ps1