This is a HTTP API server for Thermostat.
- JDK 7+
- Maven
- JRE 7+
- Mongodb 3.x+
$ mvn clean verify
$ ./distribution/target/image/bin/thermostat-mongodb.sh start
$ ./distribution/target/image/bin/thermostat-web-gateway.sh
This will run the Web Gateway with default configuration, listening on http://127.0.0.1:30000
Ctrl-C
to stop thermostat-web-gateway.sh
$ ./distribution/target/image/bin/thermostat-mongodb.sh stop
For API see the Swagger YAML specifications in ./services/*/src/main/resources
Alternatively, visit the Swagger UI hosted by the Web Gateway at http://127.0.0.1:30000/doc/index.html
and load specifications provided by the services. For example: http://127.0.0.1:30000/doc/index.html?url=http://127.0.0.1:30000/jvm-gc/0.0.2/doc/jvm-gc-swagger.yaml
This runs Thermostat Web Gateway listening on socket 5005 for a debugger to connect.
$ ./distribution/target/image/bin/thermostat-web-gateway-debug.sh
This class is meant to run from IDE (Eclipse, Intellij, etc.) with configuration setting the environment variable THERMOSTAT_GATEWAY_HOME
to distribution/target/image