{"id":15659424,"url":"https://github.com/oliyh/spa-skeleton","last_synced_at":"2025-05-05T19:28:16.596Z","repository":{"id":147664756,"uuid":"49223991","full_name":"oliyh/spa-skeleton","owner":"oliyh","description":"A skeleton project for a ClojureScript Single Page Application backed by a Swagger API","archived":false,"fork":false,"pushed_at":"2017-03-13T19:38:29.000Z","size":255,"stargazers_count":20,"open_issues_count":2,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-30T23:04:11.834Z","etag":null,"topics":["clojure","clojurescript","example","single-page-app"],"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/oliyh.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}},"created_at":"2016-01-07T18:57:50.000Z","updated_at":"2024-11-25T03:10:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"f4b8b010-c48b-4007-abe8-2f0a219fdee9","html_url":"https://github.com/oliyh/spa-skeleton","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/oliyh%2Fspa-skeleton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliyh%2Fspa-skeleton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliyh%2Fspa-skeleton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliyh%2Fspa-skeleton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oliyh","download_url":"https://codeload.github.com/oliyh/spa-skeleton/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252562343,"owners_count":21768276,"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","clojurescript","example","single-page-app"],"created_at":"2024-10-03T13:16:50.954Z","updated_at":"2025-05-05T19:28:16.576Z","avatar_url":"https://github.com/oliyh.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spa-skeleton\n\nA skeleton project for a ClojureScript Single Page Application (SPA) backed by a Swagger API.\nThe aim is to provide basic wiring from which an application can be rapidly developed.\n\n## Clojure and ClojureScript, side by side\n\nInclude the following in your emacs init.el:\n```\n(custom-set-variables\n '(cider-cljs-lein-repl\n   \"(do (use 'figwheel-sidecar.repl-api) (start-figwheel!) (cljs-repl))\"))\n```\n\nIn the older versions of CIDER the variable is called `cider-cljs-repl` instead.\n\nTo start both REPLs simultaneously press `C-c M-J`.\nFigwheel will be started and a piggieback connection into the browser's Javascript VM will be automatically established.\n\n## Server\n\nThe server consists of a Pedestal web server which serves a root for the SPA and a [Swagger API](http://swagger.io/) provided by [pedestal-api](https://github.com/oliyh/pedestal-api).\nYou can start it from a new Clojure REPL by loading the dev namespace and running start:\n```clojure\nuser\u003e (dev)\ndev\u003e (start)\n```\n\n## SPA\n\nThe SPA is a ClojureScript application which can be built and developed using [Figwheel](https://github.com/bhauman/lein-figwheel).\nOnce the server is started, open http://localhost:8080 to connect the ClojureScript REPL. You should see the following in the CLJS REPL:\n```clojure\nPrompt will show when Figwheel connects to your application\nTo quit, type: :cljs/quit\n;; =\u003e nil\ncljs.user\u003e\n```\nYou can make changes to the CLJS source files under `/src/cljs/`, save them, and see the\nresults hot-loaded into your browser with no refresh required. You can evaluate code in the CLJS REPL just like you would in a CLJ REPL.\n\n## ClojureScript builds\n\nThere are two different builds provided: the default `dev` and; `devcards`. In the ClojureScript REPL you can switch builds using `(switch-to-build \"devcards\")`. In order to use the devcards build you will need to view [cards.html](http://localhost:8080/cards.html) instead of the index.\n\nDevcards provides a way to test components interactively and in isolation, see more at [Devcards](https://github.com/bhauman/devcards).\n\n\n## Building and running from uberjar\n```bash\n$ lein uberjar\n$ java -Dnomad.env=dev -jar target/uberjar/spa-skeleton-standalone.jar\n```\n## License\n\nCopyright © 2016 oliyh\n\nDistributed under the Eclipse Public License either version 1.0 or (at\nyour option) any later version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foliyh%2Fspa-skeleton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foliyh%2Fspa-skeleton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foliyh%2Fspa-skeleton/lists"}