{"id":32619049,"url":"https://github.com/timofreiberg/teamhunt-balancer","last_synced_at":"2026-06-29T23:31:02.383Z","repository":{"id":96237288,"uuid":"129553912","full_name":"TimoFreiberg/teamhunt-balancer","owner":"TimoFreiberg","description":null,"archived":false,"fork":false,"pushed_at":"2018-04-18T20:09:59.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-12T08:04:21.395Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TimoFreiberg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-04-14T20:58:18.000Z","updated_at":"2018-04-18T20:10:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"5daba0b7-be1f-47a4-a48f-de92fa4fbad2","html_url":"https://github.com/TimoFreiberg/teamhunt-balancer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TimoFreiberg/teamhunt-balancer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimoFreiberg%2Fteamhunt-balancer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimoFreiberg%2Fteamhunt-balancer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimoFreiberg%2Fteamhunt-balancer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimoFreiberg%2Fteamhunt-balancer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TimoFreiberg","download_url":"https://codeload.github.com/TimoFreiberg/teamhunt-balancer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimoFreiberg%2Fteamhunt-balancer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34947088,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-29T02:00:05.398Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-30T17:59:44.064Z","updated_at":"2026-06-29T23:31:02.301Z","avatar_url":"https://github.com/TimoFreiberg.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# teamhunt-balancer\n\n\n## Development\n\nOpen a terminal and type `lein repl` to start a Clojure REPL\n(interactive prompt).\n\nIn the REPL, type\n\n```clojure\n(go)\n(cljs-repl)\n```\n\nThe call to `(go)` starts the Figwheel server at port 3449, which takes care of\nlive reloading ClojureScript code and CSS, and the app server at port 10555 \nwhich forwards requests to the http-handler you define.\n\nRunning `(cljs-repl)` starts the Figwheel ClojureScript REPL. Evaluating\nexpressions here will only work once you've loaded the page, so the browser can\nconnect to Figwheel.\n\nWhen you see the line `Successfully compiled \"resources/public/app.js\" in 21.36\nseconds.`, you're ready to go. Browse to `http://localhost:10555` and enjoy.\n\n**Attention: It is not needed to run `lein figwheel` separately. Instead `(go)`\nlaunches Figwheel directly from the REPL**\n\n## Trying it out\n\nIf all is well you now have a browser window saying 'Hello Chestnut',\nand a REPL prompt that looks like `cljs.user=\u003e`.\n\nOpen `resources/public/css/style.css` and change some styling of the\nH1 element. Notice how it's updated instantly in the browser.\n\nOpen `src/cljs/teamhunt-balancer/core.cljs`, and change `dom/h1` to\n`dom/h2`. As soon as you save the file, your browser is updated.\n\nIn the REPL, type\n\n```\n(ns teamhunt-balancer.core)\n(swap! app-state assoc :text \"Interactivity FTW\")\n```\n\nNotice again how the browser updates.\n\n### Lighttable\n\nLighttable provides a tighter integration for live coding with an inline\nbrowser-tab. Rather than evaluating cljs on the command line with the Figwheel\nREPL, you can evaluate code and preview pages inside Lighttable.\n\nSteps: After running `(go)`, open a browser tab in Lighttable. Open a cljs file\nfrom within a project, go to the end of an s-expression and hit Cmd-ENT.\nLighttable will ask you which client to connect. Click 'Connect a client' and\nselect 'Browser'. Browse to [http://localhost:10555](http://localhost:10555)\n\nView LT's console to see a Chrome js console.\n\nHereafter, you can save a file and see changes or evaluate cljs code (without\nsaving a file).\n\n### Emacs/CIDER\n\nCIDER is able to start both a Clojure and a ClojureScript REPL simultaneously,\nso you can interact both with the browser, and with the server. The command to\ndo this is `M-x cider-jack-in-clojurescript`.\n\nWe need to tell CIDER how to start a browser-connected Figwheel REPL though,\notherwise it will use a JavaScript engine provided by the JVM, and you won't be\nable to interact with your running app.\n\nPut this in your Emacs configuration (`~/.emacs.d/init.el` or `~/.emacs`)\n\n``` emacs-lisp\n(setq cider-cljs-lein-repl\n      \"(do (user/go)\n           (user/cljs-repl))\")\n```\n\nNow `M-x cider-jack-in-clojurescript` (shortcut: `C-c M-J`, that's a capital\n\"J\", so `Meta-Shift-j`), point your browser at `http://localhost:10555`, and\nyou're good to go.\n\n## Testing\n\nTo run the Clojure tests, use\n\n``` shell\nlein test\n```\n\nTo run the Clojurescript you use [doo](https://github.com/bensu/doo). This can\nrun your tests against a variety of JavaScript implementations, but in the\nbrowser and \"headless\". For example, to test with PhantomJS, use\n\n``` shell\nlein doo phantom\n```\n\n## Deploying to Heroku\n\nThis assumes you have a\n[Heroku account](https://signup.heroku.com/dc), have installed the\n[Heroku toolbelt](https://toolbelt.heroku.com/), and have done a\n`heroku login` before.\n\n``` sh\ngit init\ngit add -A\ngit commit\nheroku create\ngit push heroku master:master\nheroku open\n```\n\n## Running with Foreman\n\nHeroku uses [Foreman](http://ddollar.github.io/foreman/) to run your\napp, which uses the `Procfile` in your repository to figure out which\nserver command to run. Heroku also compiles and runs your code with a\nLeiningen \"production\" profile, instead of \"dev\". To locally simulate\nwhat Heroku does you can do:\n\n``` sh\nlein with-profile -dev,+production uberjar \u0026\u0026 foreman start\n```\n\nNow your app is running at\n[http://localhost:5000](http://localhost:5000) in production mode.\n\n## License\n\nCopyright © 2016 FIXME\n\nDistributed under the Eclipse Public License either version 1.0 or (at\nyour option) any later version.\n\n## Chestnut\n\nCreated with [Chestnut](http://plexus.github.io/chestnut/) 0.15.2 (e2759aff).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimofreiberg%2Fteamhunt-balancer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimofreiberg%2Fteamhunt-balancer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimofreiberg%2Fteamhunt-balancer/lists"}