Play Middle-earth:CCG in the browser.
Ch 4b - Resource Game Play (cont.)
Card rules implementation status
Install frontend dependencies:
$ npm install -g bower
$ npm install -g stylus
$ lein deps
$ bower install
Launch MongoDB and fetch card data:
$ mongod --dbpath data
or on windows
$ mongod --dbpath .\data\
then:
$ lein fetch
Compile and watch client side ClojureScript files1:
$ lein figwheel
Launch web server:
- As a REPL process (recommended for development):
$ lein repl
- As a standalone process in production mode (must first run
lein uberjar
andlein cljsbuild once prod
):$ java -jar target/meccg-standalone.jar
To run all tests:
$ lein test test.all
To run a single test file:
$ lein test test.cards.agendas
For more information refer to the development guide.
Cardnum.net is released under the MIT License.
1: This is only necessary the first time you run the project, or if you are working on front end changes.