Clone and run for a quick way to see Electron in action.
This is a set of minimal Electron applications based on the Quick Start Guide within the Electron documentation and the ROOTJS project
Any basic Electron application needs just these files:
package.json
- Points to the app's main file and lists its details and dependencies.main.js
- Starts the app and creates a browser window to render HTML. This is the app's main process.index.html
- A web page to render. This is the app's renderer process.
You can learn more about each of these components within the Quick Start Guide.
To clone and run this repository you'll need Git and Node.js (which comes with npm) installed on your computer. From your command line:
# Clone this repository
git clone https://github.com/will98789/OpenDataWebApp
# Go into the repository
cd OpenDataWebApp
# Install dependencies
npm install
# Run the app
npm start
After loading up the application, just click on one of the options.
Navigate to the directory of the application and Run
# For use from the CLI
npm install electron-packager -g
#For using the current directory as the source and everything else from the package.json. the application can now be found within the application directory under a new folder called 'electrontest-win32-x64' or similar.
electon-packager .
For more information on generating the package for other platforms refer to https://github.com/electron/electron-packager#installation.