{"id":17320862,"url":"https://github.com/andreacrotti/football","last_synced_at":"2025-03-27T03:15:18.462Z","repository":{"id":66719651,"uuid":"43598232","full_name":"AndreaCrotti/football","owner":"AndreaCrotti","description":"Fun way to draw teams for a more balanced game","archived":false,"fork":false,"pushed_at":"2017-01-13T01:11:45.000Z","size":50,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T08:31:01.964Z","etag":null,"topics":["clojure","football"],"latest_commit_sha":null,"homepage":"","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/AndreaCrotti.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"code_of_conduct.md","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}},"created_at":"2015-10-03T12:23:04.000Z","updated_at":"2021-09-21T23:25:28.000Z","dependencies_parsed_at":"2023-03-28T23:37:16.952Z","dependency_job_id":null,"html_url":"https://github.com/AndreaCrotti/football","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreaCrotti%2Ffootball","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreaCrotti%2Ffootball/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreaCrotti%2Ffootball/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreaCrotti%2Ffootball/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndreaCrotti","download_url":"https://codeload.github.com/AndreaCrotti/football/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245773180,"owners_count":20669719,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["clojure","football"],"created_at":"2024-10-15T13:34:11.766Z","updated_at":"2025-03-27T03:15:18.441Z","avatar_url":"https://github.com/AndreaCrotti.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# football\n\n[![Build Status](https://travis-ci.org/AndreaCrotti/football.png)](https://travis-ci.org/AndreaCrotti/football)\n\n## Infrastructure\n\nAnsible and Docker to set up the database and run all the tests.\n\n## TODO\n\n- add some UI to be able to input players;\n- store players with their scores into a database\n- use core.async for spawning multiple tasks\n- model different companies (with admin roles in them)\n- add authentication to the UI\n\n## Backend only\n\nJust run it with\n\n```\nlein run -r rankings_file.edn -l player_list.edn\n```\n\n## Gui\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(run)\n(browser-repl)\n```\n\nThe call to `(run)` does two things, it starts the webserver at port\n10555, and also the Figwheel server which takes care of live reloading\nClojureScript code and CSS. Give them some time to start.\n\nRunning `(browser-repl)` starts the Weasel REPL server, and drops you\ninto a ClojureScript REPL. Evaluating expressions here will only work\nonce you've loaded the page, so the browser can connect to Weasel.\n\nWhen you see the line `Successfully compiled \"resources/public/app.js\"\nin 21.36 seconds.`, you're ready to go. Browse to\n`http://localhost:10555` and enjoy.\n\n**Attention: It is not longer needed to run `lein figwheel`\n  separately. This is now taken care of behind the scenes**\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/football/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 football.core)\n(swap! app-state assoc :text \"Interactivity FTW\")\n```\n\nNotice again how the browser updates.\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 © 2014 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.8.1 (96152fa3).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreacrotti%2Ffootball","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreacrotti%2Ffootball","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreacrotti%2Ffootball/lists"}