Development
Running Tests
The following command runs unit tests and integration tests:
mvn clean verify
For IT tests, we use Testcontainers instead of jcabi-mysql, because the latter is difficult to configure and debug, and Testcontainers supports more types of databases, such as mongo.
Packaging
mvn clean package
A JAR file named astraios-1.0-SNAPSHOT.jar will be generated in the target directory.
Running Webservice (Production Environment)
Running the JAR Package
java -jar astraios-1.0-SNAPSHOT.jar
The webservice will run on port 8080, and you will be able to see the data you inserted.