https://github.com/ciantic/electron-builder-create-react-app
Template for Electron application with decoupled Create React App, and web service e.g. REST
https://github.com/ciantic/electron-builder-create-react-app
electron gui react template
Last synced: about 2 months ago
JSON representation
Template for Electron application with decoupled Create React App, and web service e.g. REST
- Host: GitHub
- URL: https://github.com/ciantic/electron-builder-create-react-app
- Owner: Ciantic
- Created: 2019-01-21T21:52:26.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-27T18:54:44.000Z (over 7 years ago)
- Last Synced: 2025-10-19T17:54:14.520Z (8 months ago)
- Topics: electron, gui, react, template
- Language: TypeScript
- Homepage:
- Size: 380 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Electron application, with decoupled Create React App and web service e.g. REST
Author: Jari Pennanen, 2019
License: Public Domain
Idea of this template is to show how to make a decoupled create-react-app and web service running in electron host.
1. `gui` - contains the basic create-react-app
2. `host-electron` - contains the electron application
3. `service` - contains the web service e.g. REST API for your GUI
GUI is supposed to work through normal website as well as electron host, but when started in electron it also serves the GUI and the web service in one same process.
## Start development example:
First, run `yarn install` in root, it should install (🤞) all the dependencies with yarn workspaces feature:
Then run `yarn start` in the root, it will start _all_ three in development mode.
## Build a Windows bundle example:
Make sure you have installed dependencies as before with yarn.
Then run `yarn build`, it should create fully functional Windows portable `host-electron\dist\win-unpacked\host-electron.exe` inside which starts all three services.