Skip to content

tbaik/java-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5

Languages