This project was intended to be implementation of the "kloc" - variation of chess. For now just chess logic has been implemented.
SBT installed. More in [installation guide] (http://www.scala-sbt.org/0.13/docs/Setup.html).
To run:
sbt web/run
This command starts server listening at localhost:9000
.
To run all tests:
sbt test
To run only chess logic tests:
sbt rules/test
To run web (both frontend and backend) tests:
sbt web/test
Mind that javascript tests will run on rhino (JVM's javascript implementation). If you want to run tests inside browser then:
sbt web/jasmineGenRunner
This command's result is a path to file. If you enter returned file in browser you'll be able to run tests in browser.
You can run all sbt commands in sbt console. So instead of sbt web/test
you can open sbt console with sbt
and then
run abitrary sbt commands (web/test
in that case). That way sbt is initialized just once.