Clone and run for a quick way to see Electron in action with Express + React.
This is a minimal Electron application based on the Quick Start Guide within the Electron documentation.
To clone and run this repository you'll need Git and Node.js (which comes with npm) installed on your computer. Install Electron Packager globally are required to. To create the installers some libs are optional.
- To build for Debian the electron-installer-debian are required.
- To build a setup installer for Windows the electron-installer-windows are required.
PS: Install Electron libraries globally is an easier way to make things work on Windows
# After Node JS installed use NPM to install Electron and Electron Packager Globally
npm install electron -g
npm install electron-packager -g
# Debian installer
npm install electron-installer-debian -g
# Windows installer
npm install electron-installer-windows -g
# Clone this repository
git clone https://github.com/luisfelrib/electron-quick-start# Go into the repository
cd electron-quick-start
# Install dependencies
npm install
# Run the app
npm start
# Build for Linux
npm run build-linux
# Build for Windows
npm run build-windows
# Generate Debian Installer
npm run gen-deb
# Generate Windows installer
npm run gen-exe- After build for any SO, the builded application is located in dist folder.
- After run installer generate command, the resources will be into installers folder.
- If you run de application from command line you will see some logs on terminal:
# Go into dist folder
cd dist
# Windows builded resources
cd app-win32-x64
# Execute app from terminal to see logs
./electron-quick-start.exe- Express server are running on port 5050 - http://localhost:5050
- electronjs.org/docs - all of Electron's documentation
- electronjs.org/community#boilerplates - sample starter apps created by the community
- electron/electron-quick-start - a very basic starter Electron app
- electron/simple-samples - small applications with ideas for taking them further
- electron/electron-api-demos - an Electron app that teaches you how to use Electron
- hokein/electron-sample-apps - small demo apps for the various Electron APIs