Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 880 Bytes

File metadata and controls

38 lines (23 loc) · 880 Bytes

Java-Server

To compile the code:

In the project directory:

mvn clean install

To run all tests:

In the project directory:

mvn clean test

To start the Java server:

In the project directory:

java -jar target/java-server-1.0-SNAPSHOT.jar

server.jar takes in two optional arguments:

  1. -p which specifies the port to listen on. Default is 5000.
  2. -d which specifies the directory to serve files from. Default is /public

To run the Java-server against cob_spec:

Start the java-server from command-line using the given command above.

Setup cob_spec using the instructions on cob_spec's github repository README.

Don't forget to set PUBLIC_DIR to cob_spec's public folder and the SERVER_START_COMMAND to point to target/java-server-1.0-SNAPSHOT.jar!