Play Android: Netrunner in the browser.
Card rules implementation status
Install Leiningen, NodeJS and MongoDB.
This project runs on Java 8. If you're on OSX or Linux, we recommend using jenv to manage your java environment.
You can check your setup by running
$ lein version # Your exact version numbers below may vary, but we expect Java 1.8.X
Leiningen 2.9.1 on Java 1.8.0_222 OpenJDK 64-Bit Server VM
Populate the database and create indexes using:
$ lein fetch [--no-card-images]
$ lein create-indexes
You can optionally pass --no-card-images
if you don't want to download images from
NetrunnerDB, as this takes a while. See lein fetch help
for further options.
To install frontend dependencies, run:
$ npm install -g bower
$ npm install -g stylus
$ bower install
To compile CSS:
$ stylus src/css -o resources/public/css/
Optionally you can pass -w
to stylus
to watch for changes and automatically recompile.
Compile ClojureScript frontend:
$ lein cljsbuild once dev
Alternatively, to watch ClojureScript files for changes and for access to a ClojureScript REPL, use lein figwheel
.
Finally, launch the webserver and the Clojure REPL:
$ lein repl
and open http://localhost:1042/
To run all tests:
$ lein test
To run a single test file:
$ lein test game.cards.agendas-test
Or a single test:
$ lein test :only game.cards.agendas-test/fifteen-minutes
For more information refer to the development guide.
- Development Tips and Tricks
- Writing Tests
- "Profiling Database Queries" in
DEVELOPMENT.md
Jinteki.net is released under the MIT License.