(Optional) Create a property file somewhere in your home directory, e.g. /home/user/eolaire-service.properties
.
See core.properties
for sample contents.
Then add VM property, e.g.: -Dbrikar.settings.path=file:/home/user/eolaire-service.properties
.
curl -u testonly:test -X POST 127.0.0.1:8080/rest/health
Should result in
OK
curl -u testonly:test -X POST 127.0.0.1:8080/g/admin/config
curl -u testonly:test -H 'Accept: application/json; charset=UTF-8' -H 'Content-Type: application/json; charset=UTF-8' -X GET 127.0.0.1:8080/rest/eolaire/item/150 -s | python -mjson.tool
Create database and fill it with test data:
java -cp ~/.m2/repository/com/h2database/h2/1.4.183/h2-1.4.183.jar org.h2.tools.RunScript -url jdbc:h2:/tmp/eolairedb -user sa -script eolaire-server/src/main/resources/eolaireService/sql/eolaire-schema.sql
java -cp ~/.m2/repository/com/h2database/h2/1.4.183/h2-1.4.183.jar org.h2.tools.RunScript -url jdbc:h2:/tmp/eolairedb -user sa -script eolaire-server/src/main/resources/eolaireService/sql/eolaire-fixture.sql
Then you can connect to it using h2 shell (remove rlwrap if you don't want to use readline):
rlwrap java -cp ~/.m2/repository/com/h2database/h2/1.4.183/h2-1.4.183.jar org.h2.tools.Shell -url jdbc:h2:/tmp/eolairedb -user sa
Increase ulimit
if you get >>> Error: EMFILE ...
.
ulimit -n 512