Тёмный

Learn Electron js by creating an Always On Top Browser 

Piko Can Fly
Подписаться 997
Просмотров 4,9 тыс.
50% 1

This beginner-friendly tutorial provides a step-by-step guide on creating a browser that always remains on top of the screen using Electron.js, an open-source framework for building cross-platform desktop applications using web technologies like HTML, CSS, and JavaScript.
Chapters:
0:00 - introduction
0:25 - prerequisites
0:35 - check to see if node.js is installed
1:40 - check to see if npm is installed
2:05 - create application with Electron Forge with Vite Plugin
3:28 - Make sure window always stays on top [setAlwaysInTop]
4:05 - remove toolbar/menu bar [autoHideMenuBar]
5:19 - start creating UI
16:11 - enable webview tag, and add it to HTML file
17:28 - start adding interactivity with Javascript in Renderer.js
22:31 - show webpage associated with inputted URL [webview.src]
25:30 - format URL
27:38 - add functionality to search button
29:15 - get URL input field to change on navigation [addEventListener(“did-navigate”)]
30:58 - add functionality to back, forward and reload button using webview methods.
32:52 - add functionality to add window button
33:24 - contextBridge and ipcRenderer in preload.js
35:07 - ipcmain [ipcMain.on(“new-window”, createWindow)
35:50 - hide dev-tools
36:20 - get new windows to open to Google.com
37:48 - set custom icon
40:05 - edit forge.config.js
41:18 - package application with squirrel[npm run make]
42:02 - installing app
42:19 - testing final application
#Electron #JS #javascript #HTML #CSS

Наука

Опубликовано:

 

1 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 24   
@kaiparado
@kaiparado 17 дней назад
Nice project, thank you
@amazonrecommendations9933
@amazonrecommendations9933 7 месяцев назад
Golden level of content. Bring more like this. Thanks
@PikoCanFly
@PikoCanFly 7 месяцев назад
Thank you!
@amazonrecommendations9933
@amazonrecommendations9933 7 месяцев назад
@@PikoCanFly It's amazing to see the level of quality content in it and it is your first video. Truly unbelievable. I suggest you to make videos on that topics which normally not covered on RU-vid like some advanced topics these topics get low views but get you specific and targeted audience for your channel that belief on your content or try the path of some popular coding RU-vid channels like Josh tried coding or Theo t3gg and web dev cody. In these scenario you get more views but less targeted audience. But, if you create this type of channel then it might get viral fast because you are girl an there are almost very few tech and coding related channels girls running. Take this from me and tell me how's the advice and what's your plan for the future of the channel.
@PikoCanFly
@PikoCanFly 7 месяцев назад
@@amazonrecommendations9933 Thank you for the kind words and your advice. Your advice sounds quite sound; Concerning my plans for the channel, I plan to keep creating quality content with original projects for the most part. However, we'll see, there is so much to try out and explore.
@collinsk8754
@collinsk8754 5 месяцев назад
Great video 👏👏!
@karskk9300
@karskk9300 4 месяца назад
thank you so much i love you :)
@seifghost8619
@seifghost8619 4 месяца назад
video was absolutely fantastic! 🌟 Your creativity and dedication really shine through. Thank you for sharing such valuable content with us. I learned new things thanks to u, and I can't wait to see more from you in the future. Keep up the amazing work! 👏👍
@PikoCanFly
@PikoCanFly 4 месяца назад
Thank you so much for your kind words! They mean so much to me. I am very happy to know I was able to help in some way! Best regards!
@viniciusacacio3147
@viniciusacacio3147 4 месяца назад
amazing!!!
@ishaansinghal2428
@ishaansinghal2428 5 месяцев назад
Amazing Tutorial literally amazing
@PikoCanFly
@PikoCanFly 5 месяцев назад
Thanks a lot!
@clueloss5373
@clueloss5373 4 месяца назад
hello could you create more electron js video? really liked this one and I am a beginner :)
@PikoCanFly
@PikoCanFly 4 месяца назад
Yes! I am planning on making an electron video soon.
@codery01
@codery01 4 месяца назад
Good day! Nicely done ! Amazing. Just want to ask also if this will work if using react components and postgreSQL. thank you so much
@PikoCanFly
@PikoCanFly 4 месяца назад
Yes, it would work provided that you adjust the code accordingly. Good luck!
@codery01
@codery01 4 месяца назад
@@PikoCanFly are you gonna make a video or do you have already a tutorials for that? Thank you so much
@PikoCanFly
@PikoCanFly 4 месяца назад
@@codery01Honestly, since I mostly make tutorials based on personal projects and I have not had a project idea that justifies using Reactjs + postgreSQL + Electron yet. If you have a fun/useful project idea that would justify using Reactjs + PostgreSQL,+ Electron, I would consider creating it and turning it into a tutorial.
6 месяцев назад
Ładnie. Tylko proponuje zamiast słowa equals przy przypisaniu używać słowa set . Equals jest raczej zarezerwowane dla logicznych warunków. A poza tym szacunek, fajny naprawdę kawałek,
@PikoCanFly
@PikoCanFly 6 месяцев назад
Dziękuję bardzo
@purplegappleyt
@purplegappleyt 21 день назад
The video was great, But I got 1 question, how do I open the links that open in a new tab?
@PikoCanFly
@PikoCanFly 19 дней назад
Hello, glad you enjoyed the video. If you want the option to open links in a new tab then you would have to code this functionality.
@RahulShinde-xs9rl
@RahulShinde-xs9rl 7 месяцев назад
Nice Tutorial ❤ . can you help me with my work how focus on same main window even if shortcut is clicked many times. If click shortcut it's opening multiple main windows as I click instead it should focus on main window.
@PikoCanFly
@PikoCanFly 7 месяцев назад
No problem. If I understand correctly, the issue you are facing is that every time you click the shortcut, a new main window is being created instead of focusing on the existing one and you want to change this behavior so that when the shortcut is clicked multiple times, it doesn't create new main windows but rather focuses on the existing one; You can achieve this by checking whether the main window is already open and focus on it if it is, or create a new main window if it's not. Try adding this code to main.js: app.on('activate', () => { if (mainWindow === null) { createMainWindow(); } else { // If the main window exists, just focus on it mainWindow.focus(); } }); I hope that helps.
Далее
ELECTRON: why people HATE it, why devs USE it
17:19
Просмотров 180 тыс.
ElectronJS Crash Course 2022
1:30:39
Просмотров 62 тыс.
Пробую торты
00:43
Просмотров 290 тыс.
Tauri in 100 Seconds
2:40
Просмотров 636 тыс.
When should you pick Laravel over WordPress?
26:54
Просмотров 3,7 тыс.
CSS Anchor Is The Best New CSS Feature Since Flexbox
15:39
Astro makes websites faster & easier to build
22:55
Просмотров 115 тыс.
Electron with React JS under 40 min!
36:36
Просмотров 84 тыс.
Create a Desktop App With JavaScript & Electron
1:11:48
Просмотров 322 тыс.
SAMSUNG S23 ULTRA🔥
0:47
Просмотров 145 тыс.
Power up all cell phones.
0:17
Просмотров 49 млн