{"id":15043837,"url":"https://github.com/paulbutcher/electron-app","last_synced_at":"2025-07-20T02:07:28.686Z","repository":{"id":62432546,"uuid":"224315280","full_name":"paulbutcher/electron-app","owner":"paulbutcher","description":"Electron app with deps.edn, figwheel.main, reagent, and test integration","archived":false,"fork":false,"pushed_at":"2019-12-08T12:38:27.000Z","size":226,"stargazers_count":29,"open_issues_count":3,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T12:21:17.250Z","etag":null,"topics":["clojurescript","electron","figwheel","reagent"],"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/paulbutcher.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-27T01:04:30.000Z","updated_at":"2021-11-02T02:26:16.000Z","dependencies_parsed_at":"2022-11-01T20:47:18.289Z","dependency_job_id":null,"html_url":"https://github.com/paulbutcher/electron-app","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulbutcher%2Felectron-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulbutcher%2Felectron-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulbutcher%2Felectron-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulbutcher%2Felectron-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paulbutcher","download_url":"https://codeload.github.com/paulbutcher/electron-app/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248983388,"owners_count":21193552,"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":["clojurescript","electron","figwheel","reagent"],"created_at":"2024-09-24T20:49:39.975Z","updated_at":"2025-04-15T00:29:07.440Z","avatar_url":"https://github.com/paulbutcher.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# electron-app\n\nA clj template for for an [Electron](https://electronjs.org) application built with [deps.edn](https://clojure.org/reference/deps_and_cli), [Figwheel Main](https://figwheel.org), [Reagent](http://reagent-project.github.io), and test integration via [cljs-test-display](https://github.com/bhauman/cljs-test-display).\n\n## Usage\n\n    clojure -A:new electron-app myname/myapp\n\nThis will generate an Electron app with a main process (source for which is located in `src/main`), a single renderer process (`src/renderer`) and unit tests for both (`src/test`).\n\n## Building\n\nBefore anything else, install Node dependencies:\n\n    npm install\n\n### Development\n\nTo run a development build:\n\n    clojure -A:dev\n\nThis will compile and run your Electron app, and display two windows, one containing your renderer, the other your tests displayed via clj-test-display:\n\n![Screenshot](./screenshot.png)\n\nAfter the application has started, you should have a REPL running, with three Figwheel sessions connected (one for the main process, one for the renderer, and one for the tests). You can see these three sessions with `(conns)`:\n\n```\ncljs.user=\u003e (conns)\nWill Eval On:  Lilliana\nSession Name     Age URL\nLilliana          0m /figwheel-connect\nShelia            0m /figwheel-connect\nAngila            0m /figwheel-connect\n```\n\nAnd switch between them with `(focus session-name)`.\n\nGo ahead and make changes to your source or via the REPL and watch the UI and/or tests update in real time.\n\n### Building a Release\n\nThe main and renderer processes need to be built separately, and then packaged into an executable with [`electron-packager`](https://github.com/electron/electron-packager):\n\n```\nclojure -A:main\nclojure -A:renderer\nnpm run package\n```\n\n### Running tests from command line\n\nTo run tests from the command line (useful for CI builds):\n\n    clojure -A:test\n\nNote that tests are run within an Electron process, so you will need to create a virtual display driver to [run tests on a headless CI system](https://electronjs.org/docs/tutorial/testing-on-headless-ci).\n\n## License\n\nCopyright © 2019 Paul Butcher\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%2Fpaulbutcher%2Felectron-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaulbutcher%2Felectron-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulbutcher%2Felectron-app/lists"}