Check out the project and build the application using maven and run the dop.jar at /target folder.
mvn clean package
By default, application will run at port 8080. The rest API is available under context path rest/. After starting application you can access it at:
http://localhost:8080/rest/path/to/resource
java -jar dop.jar
The custom configuration file can be placed anywhere visible to the application and may have any name.
java -jar -Dconfig="/path/to/custom.properties" dop.jar
To stop the application just run the command:
java -jar dop.jar stop
If you started the application using a custom configuration file, use the same configuration to stop the application.
java -jar -Dconfig="/path/to/custom.properties" dop.jar stop
The application can be configured using a custom properties file. It can be placed anywhere visible to the application and may have any name.
The available properties are:
DOP uses MariaDB database. Click here for how to install it.
- db.url - the database url
- db.username - the database username
- db.password - the database password for given username
- server.port - the port that server starts.
- command.listener.port - the port used to listening for commands to be executed on server. Currently only shutdown command is available.