Battlebots is multiplayer game inspired by scalatron written in clojure.
Each player writes their own bot in clojure (other language support may become available in the future). Players then register it in an upcoming game and battle against other bots.
- For development, Register a new GitHub OAuth Application NOTE: This step will be removed when we get a WillowTree GitHub App.
- (REQUIRED) Add the following environment variables.
- BATTLEBOTS_GITHUB_CLIENT_ID (GitHub Client ID)
- BATTLEBOTS_GITHUB_CLIENT_SECRET (GitHub Client Secret)
- BATTLEBOTS_OAUTH_SIGNING_SECRET (Random secret string)
- (OPTIONAL) If running a remote database, add the following environment variables. (This is required if running in production.
- BATTLEBOTS_MONGOD_USER_NAME
- BATTLEBOTS_MONGOD_USER_PW
- BATTLEBOTS_MONGOD_HOST_LIST
- (REQUIRED) Run
lein run
in root directory (builds project and runs server) - (REQUIRED - CLIENT DEV ONLY) Run
lein figwheel
in root directory (compiles clojurescript and watches) - (REQUIRED - CLIENT DEV ONLY) Run
lein less auto
in root directory (watches styles) - (REQUIRED - Unless using remote DB) If running DB locally, Run
mongod
to start MongoDB