Skip to content

AAJJAAYY04/Electron-calculator-button-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Electron-calculator-button-app

Follow all below steps for run this application.

  1. You need VS code application on your PC.

  2. create new folder in your workspace folder.
    workspace--
    --Electron-calculator-app
             --indo.html
             --index.html
             --main.js
             --renderer.js
             --styles.css

  3. Open all above files in your VS code.

  4. Before proceeding with Electron you need to install Node.js. To install nodejs run below procees Go to the site https://nodejs.org/en/download/ and download the necessary binary files. In our example, we are going to download the 32-bit setup files for Node.js and install it.

  5. To check that Node.js was installed correctly, type the following commands in your terminal client:
    node -v
    npm -v

  6. we need electron framework for run above calculator application.
    run below command in your terminal-->
    npm install --save-dev electron

  7. run below command for your JSON file
    npm init -y
    and modify your JSON file to
    {
    "name": "my-electron-app",
    "version": "0.1.0",
    "author": "your name",
    "description": "My Electron app",
    "main": "main.js"
    }

  8. By default, the npm start command will run the main script with Node.js. To run the script with Electron, you need to change it as such:
    add "start": "electron ." in your script which is placed in your JSON file. You just need to add.

  9. In terminal go to your project dir and run below command
    npm start