ads
How we build the html ,css and javascript.
ads
Can I use HTML, CSS and Javascript?
Yes. 😄
Focus on how Electron was created using HTML, CSS and Javascript.
Electron
Electron used for apps that use HTML, CSS, and Javascript. Apps for Mac, Linux, etc.
Electron combines Chromium and NodeJS runtimes. This means saving HTML, CSS, and Javascript code as
Electron Forge
If you're using Electron. Angular, React, Vue, Framework, or a library to manually configure this.
Electron Forge makes the above.
It template with Angular, React, Vue and Frameworks to avoid setup.
And .what a lot of documentation.
NodeJS before
. his .
The above command will be executed.
end:
cd --app-electronjs
npm
this will open window 1:
folder and code
folder is .i folder.
.json
App and script dependencies. Scripts are already preconfigured and new scripts are .
config.forge has configuration for ElectronJS. make- is used to specify a make such as Mac or Linux.
.json has "": "src/index.js" and src/index.js is
src/index.js
.json, index
js is a script. The script I'm running is .This is how the index.js script runs.
is used for GUI. Create those pages.
A run was created in the renderer.
and Renderer
consists of creating pages in a BrowserWindow.
BrowserWindow Renderer to run.
app One Many Renderer .
and renderer is . This goes in.
electron and renderer. You can name it.
abc
html is as above. Our code doesn't have
src/index.html
index.js BrowserWindow's index.html .
In other words, index.js creates a GUI window and matches it with index.html. index.html will be executed with that renderer.
code in index.js
in the code created by index.js explains what it does. index key
js:
mainWindow = new BrowserWindow({
width: 800,
: ,
});
// app index.html.
mainWindow.loadURL(`://${__dirname}/index.html`);
The code snippet above creates a BrowserWindow and an index.html in the BrowserWindow.
See app code used. Let's see the code snippet:
app.on('', createWindow);
The app uses the cycle.
The code snippet above shows a loading window.
, the app was previously turned on. Get used to closure.
makes a temperature converter. The
uses what you used to create a temperature converter.
First Bootstrap with command:
npm bootstrap --
code into src/index.html:
Temperature Converter
Celcius:
Fahrenheit:
above code works:
using Celcius
The populated textbox is celciusToFahrenheit(). Created at
Fahrenheit. FahrenheitToCelcius() is entered in the text box.
is entered in Celsius and Fahrenheit is the temperature in Fahrenheit
is entered in Fahrenheit and Celcius is the renderer.js to do the temperature conversion in Celsius
is the renderer.js.
Create renderer.js source. Code inside:
celciusToFahrenheit() {
celcius = .getElementById('celcius').;
Fahrenheit = (Celsius* /) + 32;
.getElementById('Fahrenheit'). = Fahrenheit;
}
FahrenheitToCelcius(){
Fahrenheit = .getElementById('Fahrenheit').;
Celsius = (Fahrenheit - 32) * /
.getElementById('Celsius')
= Celsius;
}
celciusToFahrenheit() reads Celcius, converts it to Fahrenheit, and writes the temperature in Fahrenheit.
FahrenheitToCelcius() does this.
run the
command:
npm
in this window. value it.
Command to packing
npm run
This command will run. Exit the output folder folder.
I do this . This creates the folder --app-electronjs-win32-x64 out folder
. In the out/--app-electronjs-win32-x64 folder, the command creates this .exe.
folder below --app-electronjs-win32-x64 appname-platform-
appname = --app-electronjs
platform = win32
= x64
Run this command parameters. The platform default is .
is the platform and . Then use the following syntax:
npm run -- --platform= arch=
. For Linux, use the command:
npm run -- --platform=linux --arch=x64
Create folder --app -electronjs -linux -x64 Output folder.
a make To create a make or installer for the
, use the command:
npm run make
This command will be executed. exit the output folder folder
Run these command parameters in the out/make folder. By default, installers are built for your platform.
code
this code is on my his GitHub repository:
https://github.com/aditya-sridhar/--app-electronjs
congratulations 😄
creates HTML, CSS and Javascript .
To you, from your document.
and .I like others.
Can I use HTML, CSS and Javascript?
Yes. 😄
Focus on how Electron was created using HTML, CSS and Javascript.
Electron
Electron used for apps that use HTML, CSS, and Javascript. Apps for Mac, Linux, etc.
Electron combines Chromium and NodeJS runtimes. This means saving HTML, CSS, and Javascript code as
Electron Forge
If you're using Electron. Angular, React, Vue, Framework, or a library to manually configure this.
Electron Forge makes the above.
It template with Angular, React, Vue and Frameworks to avoid setup.
And .what a lot of documentation.
NodeJS before
. his .
The above command will be executed.
end:
cd --app-electronjs
npm
this will open window 1:
folder and code
folder is .i folder.
.json
App and script dependencies. Scripts are already preconfigured and new scripts are .
config.forge has configuration for ElectronJS. make- is used to specify a make such as Mac or Linux.
.json has "": "src/index.js" and src/index.js is
src/index.js
.json, index
js is a script. The script I'm running is .This is how the index.js script runs.
is used for GUI. Create those pages.
A run was created in the renderer.
and Renderer
consists of creating pages in a BrowserWindow.
BrowserWindow Renderer to run.
app One Many Renderer .
and renderer is . This goes in.
electron and renderer. You can name it.
abc
html is as above. Our code doesn't have
src/index.html
index.js BrowserWindow's index.html .
In other words, index.js creates a GUI window and matches it with index.html. index.html will be executed with that renderer.
code in index.js
in the code created by index.js explains what it does. index key
js:
mainWindow = new BrowserWindow({
width: 800,
: ,
});
// app index.html.
mainWindow.loadURL(`://${__dirname}/index.html`);
The code snippet above creates a BrowserWindow and an index.html in the BrowserWindow.
See app code used. Let's see the code snippet:
app.on('', createWindow);
The app uses the cycle.
The code snippet above shows a loading window.
, the app was previously turned on. Get used to closure.
makes a temperature converter. The
uses what you used to create a temperature converter.
First Bootstrap with command:
npm bootstrap --
code into src/index.html:
Temperature Converter
Celcius:
Fahrenheit:
above code works:
using Celcius
The populated textbox is celciusToFahrenheit(). Created at
Fahrenheit. FahrenheitToCelcius() is entered in the text box.
is entered in Celsius and Fahrenheit is the temperature in Fahrenheit
is entered in Fahrenheit and Celcius is the renderer.js to do the temperature conversion in Celsius
is the renderer.js.
Create renderer.js source. Code inside:
celciusToFahrenheit() {
celcius = .getElementById('celcius').;
Fahrenheit = (Celsius* /) + 32;
.getElementById('Fahrenheit'). = Fahrenheit;
}
FahrenheitToCelcius(){
Fahrenheit = .getElementById('Fahrenheit').;
Celsius = (Fahrenheit - 32) * /
.getElementById('Celsius')
= Celsius;
}
celciusToFahrenheit() reads Celcius, converts it to Fahrenheit, and writes the temperature in Fahrenheit.
FahrenheitToCelcius() does this.
run the
command:
npm
in this window. value it.
Command to packing
npm run
This command will run. Exit the output folder folder.
I do this . This creates the folder --app-electronjs-win32-x64 out folder
. In the out/--app-electronjs-win32-x64 folder, the command creates this .exe.
folder below --app-electronjs-win32-x64 appname-platform-
appname = --app-electronjs
platform = win32
= x64
Run this command parameters. The platform default is .
is the platform and . Then use the following syntax:
npm run -- --platform= arch=
. For Linux, use the command:
npm run -- --platform=linux --arch=x64
Create folder --app -electronjs -linux -x64 Output folder.
a make To create a make or installer for the
, use the command:
npm run make
This command will be executed. exit the output folder folder
Run these command parameters in the out/make folder. By default, installers are built for your platform.
code
this code is on my his GitHub repository:
https://github.com/aditya-sridhar/--app-electronjs
congratulations 😄
creates HTML, CSS and Javascript .
To you, from your document.
and .I like others.

0 Comments