Skip to content

muskan6/ElectronScripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ElectronScripts

Some projects with electron

How to install

  1. Create a folder for electron projects.
  2. Open command line and run npm init to create a package.json file.
  3. Run npm install electron --save-dev --verbose to install electron into your code. (--verbose is to check the status of installation)
  4. Open package.json and modify scripts to add start : "scripts": { "start": "electron .", "test": "echo "Error: no test specified" && exit 1" }
  5. Run npm install electron-reload to view changes on reload itself.

What is what

  1. You have a package.json file and node_modules installed using npm commands.
  2. main.js is the start point of your app. This is what opens your html page as a webpage.
  3. index.html and index.js are the frontend and the functionality logic files of your code respectively.

How to run the app

Run npm start on terminal to run the desktop app.

Packaging the electron app

Go to your project's directory

  1. Run npm install -g electron-packager
  2. Run "electron-packager . " -> . indicates that you are in your current directory.

About

Some projects with electron

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published