{"id":25442025,"url":"https://github.com/jasondunken/electronapp","last_synced_at":"2026-04-29T20:31:30.660Z","repository":{"id":111754897,"uuid":"343186385","full_name":"jasondunken/ElectronApp","owner":"jasondunken","description":"Bare bones Electron app hosting an Angular app utilizing a Leaflet map with OpenStreetMap tiles.","archived":false,"fork":false,"pushed_at":"2021-06-21T15:50:30.000Z","size":829,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-15T19:09:53.465Z","etag":null,"topics":["angular","electron","electron-forge","leaflet","openstreetmap"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/jasondunken.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,"zenodo":null}},"created_at":"2021-02-28T18:48:51.000Z","updated_at":"2021-06-21T15:50:33.000Z","dependencies_parsed_at":"2023-04-05T10:30:04.444Z","dependency_job_id":null,"html_url":"https://github.com/jasondunken/ElectronApp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jasondunken/ElectronApp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasondunken%2FElectronApp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasondunken%2FElectronApp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasondunken%2FElectronApp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasondunken%2FElectronApp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jasondunken","download_url":"https://codeload.github.com/jasondunken/ElectronApp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasondunken%2FElectronApp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269922906,"owners_count":24496999,"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","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["angular","electron","electron-forge","leaflet","openstreetmap"],"created_at":"2025-02-17T13:16:27.376Z","updated_at":"2026-04-29T20:31:30.624Z","avatar_url":"https://github.com/jasondunken.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ElectronApp\n\nThis project is constructed with [Angular](https://angular.io) v11.2.3,\nand uses some [Angular Material](https://material.angular.io) v11.2.2 ui components.\n\nIt uses a [Leaflet](https://leafletjs.com) v1.7.1 map.\n\nIt can be compiled into an [Electron](https://www.electronjs.org) v11.3.0 executable application.\n\n[Git](https://git-scm.com) v2.30.1 and [Node](https://nodejs.org) v14.16.0 are required.\n\n### to set up a development environment:\n```\n  \u003egit clone https://github.com/jasondunken/ElectronApp.git\n  \u003ecd ElectronApp\n  \u003enpm install\n```\n- angular development serve command:\n```\n  // the npx command prefix tells node to use only local packages\n  // this method avoids a global angular installation\n  \n  // this command launches the angular app as a web page\n  \u003enpx ng serve // serves the app via angular's dev server bound to 127.0.0.1:4200\n  \n  // some serve options \n  --open // open's the app in your default browser\n  --port xxxx // binds the dev server to a port you specify\n  --host xxx.xxx.xxx.xxx // serves the app on your local network instead of 127.0.0.1\n```\n### to build the Angular app:\n```\n  \u003ecd ElectronApp\n```\n- angular build command:\n```\n  \u003enpx ng build // this command buids the angular files saves them in the \"outputPath\" specified \n                // in angular.json\n  \n  // this command builds the angular production files for electron deployment\n  \u003enpx ng build --prod --base-href ./ --output-hashing none\n\n  // some build options descriptions:\n  --prod // instructs the compiler to build a production version of the app\n  --base-href ./ // this argument is critical to ensure electron knows where to find the angular \n                // files as angular defaults to '/'\n  --output-path %SOME_PATH% // instructs the compiler where to save the build results\n  --output-hashing none // instructs the compiler not to append the file names with the file's hash\n```\n - electron development build command:\n```\n  // this command launches the electron app in a new system window without building angular files\n  \u003enpx electron .\n  \n  // this command builds angular production files and launches the electron app in a new system window\n  \u003enpm run start:electron\n```\n### to build the Electron executable:\n- Import Electron Forge to your app folder:\n\n```\n  \u003ecd ElectronApp\n  \u003enpx @electron-forge/cli import\n\n  ✔ Checking your system\n  ✔ Initializing Git Repository\n  ✔ Writing modified package.json file\n  ✔ Installing dependencies\n  ✔ Writing modified package.json file\n  ✔ Fixing .gitignore\n\n  We have ATTEMPTED to convert your app to be in a format that electron-forge understands.\n\n  Thanks for using \"electron-forge\"!!!\n```\n- Create an executable:\n\n```\n  \u003enpm run make\n\n  my-gsod-electron-app@1.0.0 make /my-electron-app\n  electron-forge make\n\n  ✔ Checking your system\n  ✔ Resolving Forge Config\n  We need to package your application before we can make it\n  ✔ Preparing to Package Application for arch: x64\n  ✔ Preparing native dependencies\n  ✔ Packaging Application\n  Making for the following targets: zip\n  ✔ Making for target: zip - On platform: darwin - For arch: x64\n```\n- The executable will be located in `ElectronApp/out/make/squirrel.windows/x64/`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasondunken%2Felectronapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjasondunken%2Felectronapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasondunken%2Felectronapp/lists"}