{"id":15439629,"url":"https://github.com/opqdonut/clojure-train-radiator","last_synced_at":"2025-03-28T06:40:56.109Z","repository":{"id":136987050,"uuid":"109853973","full_name":"opqdonut/clojure-train-radiator","owner":"opqdonut","description":"A small example project in Clojure. Fetches train information from rata.digitraffic.fi API and displays it.","archived":false,"fork":false,"pushed_at":"2021-11-02T08:44:40.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-18T11:25:10.244Z","etag":null,"topics":["clojure","example"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opqdonut.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2017-11-07T15:28:52.000Z","updated_at":"2023-07-25T14:12:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"8090897a-9a26-4181-aa00-3a64d25ff812","html_url":"https://github.com/opqdonut/clojure-train-radiator","commit_stats":{"total_commits":20,"total_committers":2,"mean_commits":10.0,"dds":"0.050000000000000044","last_synced_commit":"6b69988c95783510071ea0a93a8801659fe6a72d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opqdonut%2Fclojure-train-radiator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opqdonut%2Fclojure-train-radiator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opqdonut%2Fclojure-train-radiator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opqdonut%2Fclojure-train-radiator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opqdonut","download_url":"https://codeload.github.com/opqdonut/clojure-train-radiator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245984561,"owners_count":20704794,"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","example"],"created_at":"2024-10-01T19:08:06.395Z","updated_at":"2025-03-28T06:40:56.089Z","avatar_url":"https://github.com/opqdonut.png","language":"Clojure","readme":"Clojure Train Radiator\n======================\n\nA small example project in Clojure. Fetches train information from\n[rata.digitraffic.fi](https://rata.digitraffic.fi/) API and displays\nit.\n\nGetting started\n===============\n\n1. Install the Clojure build tool [Leiningen](https://leiningen.org).\n2. Run `lein ring server` to start the server and a browser\n4. Change the code (file `src/handler.clj`)\n5. Refresh the browser and see your changes\n\nProject structure\n=================\n\n- `project.clj`: the configuration file for Leiningen\n- `src/handler.clj`: the code is here\n- `resources/public/style.css`: the CSS style file\n- `test/handler_test.clj`: unit tests (run these with `lein test`)\n\nUseful documentation\n====================\n\n- [ClojureDocs](https://clojuredocs.org) – the Clojure standard library documentation, searchable\n- [Compojure wiki](https://github.com/weavejester/compojure/wiki) – the web framework used in this project\n- [Hiccup wiki](https://github.com/weavejester/hiccup/wiki) - how to generate HTML\n- [clj-time](https://github.com/clj-time/clj-time) - how to handle time\n- [docs for the digitraffic api](https://rata.digitraffic.fi/swagger/index.html)\n\nTasks\n=====\n\n- make the page prettier\n- make the station configurable\n- show only time table rows for this station\n- only show future events\n- collect statistics of late trains\n\nInteractive development\n=======================\n\nInteractive development means having a REPL (command prompt) where you\ncan interact with the code and try out things, while also running the\nserver.\n\nHere's how:\n\n1. Start an interactive clojure environment, for example:\n   - run `lein repl` in a terminal\n   - use `M-x cider-jack-in` in Emacs (after installing [cider](https://github.com/clojure-emacs/cider))\n   - install a Clojure IDE like [Cursive for IntelliJ](https://cursive-ide.com/userguide/)\n2. Run `(run)` to start a server\n3. Try out things and edit code\n4. Reload code changes with either\n   - the reload functionality in your IDE\n   - running `(refresh)` in the repl\n\nExperimental: integrated editor\n===============================\n\nIn case you don't feel like installing a Clojure IDE or editor, you\ncan try out the browser-based editor, [Nightlight](https://sekao.net/nightlight/):\n\n1. Run `lein nightlight`\n2. Point your broser to \u003chttp://localhost:4000\u003e\n3. Open the file `src/handler.clj`\n4. You can run the server like this:\n   1. Switch to _Clojure REPL_ (on the top left)\n   2. Type in `(handler/run)`\n   3. Open another browser tab to \u003chttp://localhost:3000\u003e\n\nWhere to go from here?\n======================\n\nTODO\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopqdonut%2Fclojure-train-radiator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopqdonut%2Fclojure-train-radiator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopqdonut%2Fclojure-train-radiator/lists"}