POC Desktop app with Electorn + React
Distribution with electron-builder
Build
Development
- npm start
- npm electron-dev
Production
- npm build
- npm electron
Useful Links
https://medium.freecodecamp.org/building-an-electron-application-with-create-react-app-97945861647c
https://material-ui.com/demos/app-bar/
http://tszekely.github.io/react-learning-module/step-02 https://reactjsexample.com/tag/table/ https://www.npmtrends.com/jspdf-vs-pdf-vs-pdfkit-vs-pdfmake
https://npmcompare.com/compare/jspdf,pdfkit,pdfmake https://nodejs.libhunt.com/compare-jspdf-vs-pdfkit
https://mrrio.github.io/ https://micropyramid.com/blog/export-html-web-page-to-pdf-using-jspdf/
https://printjs.crabbly.com/#documentation
https://www.npmjs.com/package/react-hotkeys
https://www.npmjs.com/package/react-shortcuts
https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values
https://stackoverflow.com/questions/45542488/material-ui-beta-table-with-global-search
https://www.npmjs.com/package/query-string
https://stackoverflow.com/questions/49130876/how-to-integrate-error-boundary-in-components-routed-using-react-router
https://stackoverflow.com/questions/41140960/where-can-i-find-the-logs-for-my-electron-app-in-production
https://www.npmjs.com/package/electron-log
Electron Projects
https://github.com/electron
https://github.com/electron-userland
Builders
https://github.com/Squirrel/Squirrel.Windows
https://github.com/electron-userland/electron-builder
https://medium.com/@kitze/%EF%B8%8F-from-react-to-an-electron-app-ready-for-production-a0468ecb1da3
https://github.com/kitze/react-electron-example
https://github.com/electron-react-boilerplate/electron-react-boilerplate
https://github.com/electron/windows-installer
https://www.christianengvall.se/electron-windows-installer/
https://www.electron.build/auto-update
https://github.com/iffy/electron-updater-example
Logs https://github.com/winstonjs/winston https://www.digitalocean.com/community/tutorials/how-to-use-winston-to-log-node-js-applications
Enable network logs: https://electronjs.org/docs/api/net-log
i18 https://www.christianengvall.se/electron-localization/
https://www.i18next.com/overview/comparison-to-others
Issues: https://github.com/i18next/i18next/issues/869 https://discuss.atom.io/t/internationalization-setup-i18n/34128
Other Notes https://hub.packtpub.com/internationalization-localization-node-js-app/
Know about JS https://bestofjs.org/ https://bestofjs.org/projects/electron/
Issues https://stackoverflow.com/questions/36505404/how-to-use-react-router-with-electron
https://github.com/ReactTraining/react-router/blob/master/packages/react-router-dom/docs/api/HashRouter.md
https://discuss.atom.io/t/how-to-use-react-router-in-electron/48965/2
Snippets
‘web-preferences’: { ‘web-security’: false }
webPreferences: {
webSecurity: false }