This server is following the specifications of the 8th Light cob spec test suite.
Clone this repo, navigate into the folder and run:
mvn package
java -jar target/second-http-server-1.0-SNAPSHOT.jar
You can also specify a port and a directory if you don't want to use the default port 5000 and directory PUBLIC_DIR.
java -jar target/second-http-server-1.0-SNAPSHOT.jar -p 1234 -d SOME_OTHER_DIR
You will get feedback in the console to see which port number and directory are used.
You can run the unit tests with
mvn test
Navigate into the folder vendor/cob_spec
.
Then type
mvn package
java -jar fitnesse.jar -p 9090
The test suite will run on http://localhost:9090/HttpTestSuite.
To see the game in your browser, run the following commands in the root directory of this application.
java -jar target/second-http-server-1.0-SNAPSHOT.jar
Then open http://localhost:5000/ttt-game in your web browser.