{"id":15440135,"url":"https://github.com/deraen/saapas","last_synced_at":"2025-04-14T06:21:11.572Z","repository":{"id":49258612,"uuid":"26333917","full_name":"Deraen/saapas","owner":"Deraen","description":"Example project for Cljs using Boot instead of Lein. Inspired by Chestnut.","archived":false,"fork":false,"pushed_at":"2021-06-21T15:49:44.000Z","size":168,"stargazers_count":135,"open_issues_count":3,"forks_count":19,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-13T20:33:58.314Z","etag":null,"topics":["boot","clojure","clojurescript"],"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/Deraen.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}},"created_at":"2014-11-07T19:13:27.000Z","updated_at":"2024-05-31T07:45:08.000Z","dependencies_parsed_at":"2022-08-29T17:02:48.116Z","dependency_job_id":null,"html_url":"https://github.com/Deraen/saapas","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/Deraen%2Fsaapas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Deraen%2Fsaapas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Deraen%2Fsaapas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Deraen%2Fsaapas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Deraen","download_url":"https://codeload.github.com/Deraen/saapas/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248830874,"owners_count":21168358,"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":["boot","clojure","clojurescript"],"created_at":"2024-10-01T19:11:06.598Z","updated_at":"2025-04-14T06:21:11.546Z","avatar_url":"https://github.com/Deraen.png","language":"Clojure","readme":"# Saapas\n\n\u003cimg src=\"saapas.png\" align=\"right\"\u003e\n\nOpinionated example project for ClojureScript using Boot instead of Leiningen.\nWas inspired by [chestnut] but has grown since to include other stuff to\ndemonstrate Boot.\n\nThis is not an Leiningen template as I don't believe in setting up complex\nprojects automatically. Instead you should study this project and copy\nonly stuff you need and understand.\n\n### Prerequisites\n\nYou should first [install Boot][install]. Also you should be running the\nlatest version.\n\n## Features\n\n- Uses [component] and [reloaded.repl] to provide utilities to `start`,\n  `stop` and `reset` (reload) the app.\n- Simple [Compojure][compojure] backend\n- Simple [Reagent][reagent] frontend\n- [LESS][less] to write CSS\n  - [less4clj] is able to import files from classpath\n  - You can add dependency to e.g. bootstrap from [webjars] to\n    your regular dependencies and then use `@import \"bootstrap/less/bootstrap.less\"`\n    on your `.less` files.\n- or alternatively, [Sass][sass] to write CSS\n  - [sass4clj] is also able to import files from classpath\n- `dev` task starts the whole development workflow\n  - Check `boot dev --help` for options\n  - [Browser repl][boot-cljs-repl] included\n  - Watches for file changes\n    - \\*.less changes trigger less compilation\n    - \\*.cljs changes trigger [cljs][boot-cljs] compilation\n  - [Live-reloading][boot-reload]\n    - \\*.js, \\*.css, \\*.html changes send notification to browser thought WebSocket and browser loads the new files\n- `autotest` task to run Clj and Cljs tests whenever files are changed\n  - Uses [boot-alt-test] to run Clojure tests as fast as possible and\n  only running the changed tests are file changes\n  - Uses [boot-cljs-test] to run ClojureScript tests with [Doo], allowing the tests\n  to run in many of JS environments, like browsers, Node or PhantomJS.\n- Provides `package` task that creates Uberjar that can be used to run the app on a server\n  - Cljs will be compiled using `:advanced` optimization and uses minified foreign libraries, like React\n  - Only [`backend.main`](./src/clj/backend/main.clj) is AOT compiled, so that it is\n  possible to start the application with `java -jar saapas.jar` but so that\n  rest of the code is compiled at application startup to avoid problems with AOT\n  compilation.\n\n## Usage\n\nTo start everything run:\n```\n$ boot dev\nboot.user=\u003e\n# App should now be running, you can use following commands to restart the app\nboot.user=\u003e (stop) ; Stop app\nboot.user=\u003e (start) ; Start app\nboot.user=\u003e (reset) ; Stop, reload all namespaces, start\n```\n\nIf you want a repl where you can execute commands, you can start a nrepl\nclient which connects to the nrepl server started by the dev task by running\n```\n$ boot repl -c\n```\n\n## License\n\n\u003cp xmlns:dct=\"http://purl.org/dc/terms/\" xmlns:vcard=\"http://www.w3.org/2001/vcard-rdf/3.0#\"\u003e\n  \u003ca rel=\"license\"\n     href=\"http://creativecommons.org/publicdomain/zero/1.0/\"\u003e\n    \u003cimg src=\"http://i.creativecommons.org/p/zero/1.0/88x31.png\" style=\"border-style: none;\" alt=\"CC0\" /\u003e\n  \u003c/a\u003e\n  \u003cbr /\u003e\n  To the extent possible under law,\n  \u003cspan resource=\"[_:publisher]\" rel=\"dct:publisher\"\u003e\n    \u003cspan property=\"dct:title\"\u003eJuho Teperi\u003c/span\u003e\u003c/span\u003e\n  has waived all copyright and related or neighboring rights to\n  \u003cspan property=\"dct:title\"\u003eSaapas\u003c/span\u003e.\nThis work is published from:\n\u003cspan property=\"vcard:Country\" datatype=\"dct:ISO3166\"\n      content=\"FI\" about=\"[_:publisher]\"\u003e\n  Suomi\u003c/span\u003e.\n\u003c/p\u003e\n\n[chestnut]: https://github.com/plexus/chestnut\n[install]: https://github.com/boot-clj/boot#install\n[component]: https://github.com/stuartsierra/component\n[reloaded.repl]: https://github.com/weavejester/reloaded.repl\n[compojure]: https://github.com/weavejester/compojure\n[reagent]: https://github.com/reagent-project/reagent\n[LESS]: http://lesscss.org/\n[sass]: http://sass-lang.com/\n[less4clj]: https://github.com/Deraen/less4clj\n[sass4clj]: https://github.com/Deraen/sass4clj\n[webjars]: http://www.webjars.org\n[boot-cljs]: https://github.com/boot-clj/boot-cljs\n[boot-cljs-repl]: https://github.com/adzerk/boot-cljs-repl\n[boot-reload]: https://github.com/adzerk/boot-reload\n[boot-alt-test]: https://github.com/metosin/boot-alt-test\n[boot-cljs-test]: https://github.com/crisptrutski/boot-cljs-test\n[Doo]: https://github.com/bensu/doo\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderaen%2Fsaapas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderaen%2Fsaapas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderaen%2Fsaapas/lists"}