# closure-api-min a simple closure compiler server using Java's built-in http server. ## Build ```sh mvn -DskipTests package ``` ## Run ```sh CLOSURED_ROOT=$PWD \ CLOSURED_PORT=8080 \ CLOSURED_WORKERS=2 \ java -Xms256m -Xmx2g -jar target/closure-api-0.1.0.jar ``` ## Test ```sh curl -s http://127.0.0.1:8080/compile \ -H 'Content-Type: application/json' \ -d '{ "externSources": [{ "name": "extern/hello.js", "source": "var a = {};" }], "jsSources": [{ "name": "example/js/hello.js", "source": "var a = {};" }], "defines": {"DEBUG": false} }' ```