-
Notifications
You must be signed in to change notification settings - Fork 9
Installation
emikhelo edited this page Aug 9, 2011
·
10 revisions
- Add your jdbc driver jar to service/lib
- Set JAVA_OPTS environment variable:
JAVA_OPTS=-Djdbc.drivers=... -Duniso.query.driver=... -Duniso.query.db=... -Duniso.query.user=... -Duniso.query.password=... -Duniso.query.schema=...
For example:
set JAVA_OPTS=-Duniso.query.driver=org.postgresql.Driver -Duniso.query.db=jdbc:postgresql://192.168.1.1/mydb -Duniso.query.user=dbuser -Duniso.query.password=dbuserpass -Duniso.query.schema=public - Execute sbt update ~jetty-run. This downloads Scala and all necessary packages from maven repositories, compiles source and runs application on Jetty server on default port 8080.
- Browse to http://localhost:8080.
For get and post examples, browse to http://localhost:8080/get and http://localhost:8080/post.
Named query parameters are not supported by examples, but are supported by query server API.
For more info on gets and posts, see scaladoc for QueryServer. To create scaladoc, execute sbt doc.
To create core jar and service war, execute sbt package.
Compiled and generated files (jars, wars, classes, docs) are found in core/target and service/target.