A re-frame application designed to view ongoing games, game history and aggregate data from the Bad API
- Install JDK 8 or later (Java Development Kit)
- Install Node.js (JavaScript runtime environment) which should include NPM or if your Node.js installation does not include NPM also install it.
- Install Leiningen
- Install Postgresql
- Clone this repo and open a terminal in the
badgui
project root directory - Run
npm install
andnpx shadow-cljs release app
, this will createresources/public/js/compiled
directory, containing the compiledapp.js
andmanifest.edn
files. - Then run
initdb pg
andcreatedb badgui
to setup the database. - Now you can do
lein run
, if this is your first time running the process, put "First" as your first argument. If you don't use a second argument the program will try to copy all pages from the Bad API history. This might take several hours. If you want to copy only a certain amount of pages you can use an integer as the second argument. This will specify the number of pages to copy. - After running the program you should be able to find the app in localhost://8080. The server might take a couple of minutes to start so please be patient.