{"id":44479225,"url":"https://github.com/dark-wind/electron-react-bootstrap-template","last_synced_at":"2026-02-12T23:15:32.768Z","repository":{"id":37216075,"uuid":"188147783","full_name":"dark-wind/electron-react-bootstrap-template","owner":"dark-wind","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-03T22:26:22.000Z","size":5298,"stargazers_count":0,"open_issues_count":27,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-29T19:03:26.154Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dark-wind.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}},"created_at":"2019-05-23T02:34:11.000Z","updated_at":"2019-05-29T03:44:34.000Z","dependencies_parsed_at":"2023-02-01T11:31:29.132Z","dependency_job_id":null,"html_url":"https://github.com/dark-wind/electron-react-bootstrap-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dark-wind/electron-react-bootstrap-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dark-wind%2Felectron-react-bootstrap-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dark-wind%2Felectron-react-bootstrap-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dark-wind%2Felectron-react-bootstrap-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dark-wind%2Felectron-react-bootstrap-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dark-wind","download_url":"https://codeload.github.com/dark-wind/electron-react-bootstrap-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dark-wind%2Felectron-react-bootstrap-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29385820,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T22:07:52.078Z","status":"ssl_error","status_checked_at":"2026-02-12T22:07:49.026Z","response_time":55,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-02-12T23:15:27.230Z","updated_at":"2026-02-12T23:15:32.757Z","avatar_url":"https://github.com/dark-wind.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# electron-react-bootstrap 模板\n\n**`集成electron + react + bootstrap`** 踩完了大多数集成的坑\n- 使用create-react-app构建\n- electron在主界面使用loadURL接入react\n- react中使用window.electron引入electron进行通信\n\n**`主界面引入light-bootstrap-dashboard主题`** 免去了自己写样式的麻烦\n- 使用react-bootstrap而不是直接使用的bootstrap\n- 单纯引入主题的样式文件,可以轻松剥离\n\n**`功能模块与主界面完全解耦, 使用子窗口开启`** 子窗口独立运行html,剥离react\n\n## 运行\n```\nyarn install \nyarn start  // 运行react\nyarn electron-start    //运行electron\n```\n\n## 目录结构\n```\n|-- www\n    |-- .gitignore\n    |-- LICENSE\n    |-- README.md\n    |-- main.js           electron入口文件\n    |-- package.json\n    |-- yarn.lock\n    |-- public            暴露入口,尽量不修改  \n    |   |-- favicon.ico\n    |   |-- index.html\n    |   |-- manifest.json\n    |   |-- renderer.js\n    |-- src               所有的逻辑代码\n        |-- App.test.js\n        |-- index.js      主界面react入口文件\n        |-- routes.js\n        |-- serviceWorker.js\n        |-- main          主界面所有代码\n            |-- assets\n            |   |-- css\n            |   |-- fonts\n            |   |-- img\n            |   |-- sass\n            |-- components\n            |-- electron\n            |-- layouts\n            |-- templates\n            |-- views\n        |-- modules        所有的功能模块,与主界面解耦\n```\n\n## 特殊的\n\n修改 开发/部署 环境:修改package.json下的\n```\n\"devMode\": true,\n```\n\n\n\n## 目录md重新生成\n```\n$ pwd\n    Users/username/Documents/demo-project\n$ npm install mddir --save\n$ cd node_modules/mddir/src\n$ pwd\n    Users/username/Documents/node_modules/mddir/src\n$ ls\n    mddir.js\n$ node mddir \"../../../\"\n// Exports 'directoryList.md' in mddir/src folder\n```\n\n## Available Scripts\n\nIn the project directory, you can run:\n\n### `npm start`\n\nRuns the app in the development mode.\u003cbr\u003e\nOpen [http://localhost:3000](http://localhost:3000) to view it in the browser.\n\nThe page will reload if you make edits.\u003cbr\u003e\nYou will also see any lint errors in the console.\n\n### `npm test`\n\nLaunches the test runner in the interactive watch mode.\u003cbr\u003e\nSee the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.\n\n### `npm run build`\n\nBuilds the app for production to the `build` folder.\u003cbr\u003e\nIt correctly bundles React in production mode and optimizes the build for the best performance.\n\nThe build is minified and the filenames include the hashes.\u003cbr\u003e\nYour app is ready to be deployed!\n\nSee the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.\n\n### `npm run eject`\n\n**Note: this is a one-way operation. Once you `eject`, you can’t go back!**\n\nIf you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.\n\nInstead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.\n\nYou don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.\n\n## Learn More\n\nYou can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).\n\nTo learn React, check out the [React documentation](https://reactjs.org/).\n\n### Code Splitting\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting\n\n### Analyzing the Bundle Size\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size\n\n### Making a Progressive Web App\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app\n\n### Advanced Configuration\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration\n\n### Deployment\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/deployment\n\n### `npm run build` fails to minify\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdark-wind%2Felectron-react-bootstrap-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdark-wind%2Felectron-react-bootstrap-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdark-wind%2Felectron-react-bootstrap-template/lists"}