An Intro To Electron - Desktop Apps with JavaScript

Поделиться
HTML-код
  • Опубликовано: 14 янв 2025

Комментарии • 327

  • @Loppy2345
    @Loppy2345 6 лет назад +4

    Awesome, makes electron seem so simple. Before watching this, I thought it would be seriously complicated. I love visual studio code (like many of us) and it's great to see such great tools emerging.

  • @LazAustin
    @LazAustin 2 года назад

    When I finally get a javascript job, I'm going all the way back to learn and watch all Brad's videos. One doesn't need anything else.

  • @richardlair9363
    @richardlair9363 5 лет назад +2

    I've looked at a lot of programming environments and Electron most definitely interests me. Thanks for educating me.

  • @chessprogramming591
    @chessprogramming591 3 года назад +3

    Thank you for this brief intro Brad.
    This is exactly what I was looking for.
    Now I can finally bring my chess apps all together into a single cross platform GUI!

  • @cervantes01
    @cervantes01 6 лет назад +11

    I love this, you've really opened my eyes to the potential of JS well done :)

  • @unclebuddy
    @unclebuddy 3 года назад +3

    Great tutorial. Due to breaking changes in Electron, add to createWindow() in the BrowserWindow options to fix the error that says "require is not defined" (same fix needed for Brad's excellent tutorial on 60-minute Electron app):
    webPreferences: {
    nodeIntegration: true,
    contextIsolation: false
    }

  • @kristofernauyokas2568
    @kristofernauyokas2568 5 лет назад +1

    Thanks so much 4 the sweeeeet kewpage. I'm replacing my JAVA app with this approach and so grateful for your selfless sharing. Stay strong, Code on!

  • @williamsgodswill7764
    @williamsgodswill7764 6 лет назад

    Brad Traversy you are very brilliant, Why i am saying this because i have watched almost all of your videos and they keep on solving all of my issues an example is the PHP OOP and MVC and some of your other videos on react js, node js etc thanks for all you are doing. Keep up with your good works

  • @malkitsingh01
    @malkitsingh01 7 лет назад

    liked before watching video..that's how much we believe in you, Brad. Keep bringing up cool stuff. You are the best teacher.

  • @freeelectron8261
    @freeelectron8261 6 лет назад +2

    Thanks Brad for a cool intro to Electron. Looking forward to the next installment!

  • @robbriuchov2024
    @robbriuchov2024 6 лет назад

    I have really enjoyed this tutorial, format is very good, not too fast, easy steps, good explanation, keep moving the same direction, Brad!
    Subscribed, waiting for next videos of this series.

  • @ScottSaysStuff
    @ScottSaysStuff 7 лет назад +23

    This is sweet!
    I am working on my senior project in college and am deciding which technologies to use.
    Originally, I planned to go with Angular2 & Firebase (since you have a solid tutorial on), however, Electron seems legit and I think it has a better use case for my application.
    Please create a tutorial series for Electron. Which DBMS would be best for Electron?
    Keep up the great videos man. You've helped me immensely and I have only been watching your videos for a month or so.

    • @vickylance
      @vickylance 7 лет назад +2

      MongoDB works great with Nodejs if you want NoSQL b ut if you want SQL Postgres works best with Nodejs.. and anything that works best with nodejs works best with electron

    • @wobsoriano
      @wobsoriano 7 лет назад +1

      I would go for NeDB

    • @remusomega
      @remusomega 7 лет назад

      React man. React.

  • @mufasilfaizal
    @mufasilfaizal 7 лет назад

    The best electron tutorial which i ever seen. As a beginner its helped me so much. I'm using OS X, some processes are different in MAC.

  • @gloriousnoobs5456
    @gloriousnoobs5456 7 лет назад +14

    Being more of a backend kind of guy myself I have something like a inner aversion to everything JavaScript, but to be honest Electron is really impressive from what I have seen. Visual Studio Code itself is written with it and I'm really impressed how well it runs on both Windows and Linux. The look and feel is also very consistent and it's not that mess that some cross platform apps tend to be, UI wise.
    This technology might just be the trick to make myself learn JavaScript without hating my life for having to do it.

    • @TraversyMedia
      @TraversyMedia  7 лет назад +3

      Yes it is a very intriguing technology. I am excited to learn more about it. Right now I just know the very basics

    • @scewps
      @scewps 6 лет назад

      same

    • @poryg5350
      @poryg5350 6 лет назад

      I actually love Javascript. I don't need to worry about:
      Memory management
      Predefined code.
      Potentially undefined values. Very useful for dynamic classes, because using this.foo won't crash.
      Zero division error. According to JS logic anything divided by 0 is infinity, because anything divided by infinity is 0.
      Type conversion.
      Having to differentiate between different types of array-ish things.
      Being limited only to objects if I want to define properties. In JS any variable can have its own properties, including integers. And missing this in other languages is a huge pain for me sometimes!
      And in the end there's also a ton of ready-made plugins. Animations made easy. Audio handling - really powerful, made easy. WebGL made easy.
      And I could continue indefinitely.

  • @ajakinremi7373
    @ajakinremi7373 7 лет назад +37

    I am thirsty for more indeed. Please, I am begging you.

    • @Thschris
      @Thschris 7 лет назад +4

      +Web Probie I busted out laughing when I heard that too! Sometimes technology is like women, sometimes you just get thirsty, and when you get dehydrated, you want mooooooooooooooooooooooooore.

    • @zes7215
      @zes7215 3 года назад

      no such thing as leavx thirsx or not, say, do any nmw, no nerx

  • @abdulstuntin5101
    @abdulstuntin5101 7 лет назад

    My God! JavaScript is becoming the god of all programming languages front-end, back-end, graphics rendering, and now desktop apps!

  • @dzonialucard
    @dzonialucard 7 лет назад +47

    OH MY GOD
    I have been waiting for this - i utterly detested JS because i couldnt write desktop stuff.
    this is brilliant

    • @Rahlpwns
      @Rahlpwns 6 лет назад +1

      old comment, but react isn''t written in another language. it's still javascript. the entire react library was written using pure javascript. javascript itself is an interpreted language, meaning you can interpret it using any language, but most interpreters like Chrome's V8 use c++

    • @NoOne-om9bb
      @NoOne-om9bb 6 лет назад

      Same bro

  • @mayaahmed
    @mayaahmed 4 года назад

    Cool. Awesome introduction to Electron.

  • @stuartgreen5217
    @stuartgreen5217 4 года назад

    Been creating C# forms apps for years, planning to give this a go as been learning node and react in recent weeks .

  • @jwchavez
    @jwchavez 7 лет назад +7

    Great tutorial as always. Brad as a suggestion, why don't you develop a CRUD app using electron and sqlite when you finish your research on electron? It occurs to me that this combo can be used for fast developing of small db projects which can be platform independent because both chrome and sqlite run almost everywhere. Nowadays the most common tools for accomplishing this are java and maybe lazarus/pascal which have a steep learning curve. Thanks a lot for your great content, regards from México!

  • @mrcalico7091
    @mrcalico7091 7 лет назад

    Just what I wanted to know! Thank you for jumping in ad just doing it for us!

  • @sjellenoff
    @sjellenoff 5 лет назад

    Great intro video, nice and simple as it should be so we can easily follow all of it. Well done. Look forward to more.

  • @JoshDanns
    @JoshDanns 7 лет назад +3

    I learnt PHP using one of your guides!!! Thanks a bunch

  • @AkshayKumarX
    @AkshayKumarX 7 лет назад

    really surprised at number the of really good apps built by big companies with this library, impressive

  • @rja421
    @rja421 7 лет назад

    I've been building an Electron app for the last couple of weeks and I'm enjoying it. I had some trouble with the mongoose driver for Mongodb so I had to use the MongoDB official node driver but apart from that it's been going quite smoothly.

  • @vic0de
    @vic0de 7 лет назад

    I tried learning electron few months before, but couldn't learn as the doc's were confusing and was not able to put everything successfully.
    great seeing u coming up with the tutorial. am sure I will successfully learn it this time.
    looking forward to more in-depth vedios.
    thanks bro

  • @sskdev5116
    @sskdev5116 7 лет назад

    Thank you soo much!!!!! I was looking for something like this. Please do continue on this series please. Thank you

  • @stephh4392
    @stephh4392 6 лет назад

    Please do more videos about electron!!! Brad, this is so awesome!

  • @khalidelgazzar
    @khalidelgazzar 4 года назад

    Thanks Brad, nice intro to Electron,

  • @gladimirjacobsen6356
    @gladimirjacobsen6356 7 лет назад +6

    great tutorial brad

  • @lakerol2876
    @lakerol2876 7 лет назад

    I was searching for info about the Intel Atom CPU, and this came up (Since you use Atom editor). I watched the whole video and got ideas for small desktop apps I want to do :D

  • @shalynm8046
    @shalynm8046 5 лет назад

    This was an awesome intro Brad! Thanks so much.

  • @ginoskotheon3
    @ginoskotheon3 7 лет назад

    Wow ... that was fun. You're right ... leaves one thirsty for more.

  • @billelguechi5831
    @billelguechi5831 6 лет назад

    We are waiting more Brad Good job Bro

  • @jabbergabber5190
    @jabbergabber5190 7 лет назад

    Perfect into to Electron - just what I was looking for - cheers

  • @werthersoriginal
    @werthersoriginal 7 лет назад +7

    You should definitely check out PhotonKit for use with Electron. It is perfect for getting your app to have a native look when choosing your environment. A lot developers use it when building with Electron. Great tutorial by the way!

    • @techl
      @techl 6 лет назад +1

      +Werther'sOriginal - great suggestion, thanks

  • @JMSTipsAndTricks
    @JMSTipsAndTricks 7 лет назад +1

    Cheers man, I really appreciate your content. Keep it coming!

  • @slackergeek2007
    @slackergeek2007 7 лет назад

    Cool video. Can't wait to see more. That being said, it would be cool if you maximized your editor, if possible. That right side brightness is painful at night. :)

  • @jorgesepulveda8380
    @jorgesepulveda8380 7 лет назад +1

    awesome! Hope you do more videos about Electron and how to build desktop apps with it

  • @doommega
    @doommega 7 лет назад

    BRad this is a cool app here can’t wait to c more

  • @glatocha
    @glatocha 3 года назад +2

    Hey Brad, would you consider redoing it for 2021. With Electron v12 this does not work and as some comments said, the nodeIntegration trick does not work really

  • @brentbrown4766
    @brentbrown4766 5 лет назад

    this is thumbs up for me.. yes i do enjoy watching in this app.
    " My Thank's "

  • @Muphet
    @Muphet 7 лет назад

    i've been waiting for this. or even if there was electron+external api

  • @ahmadawan3653
    @ahmadawan3653 4 года назад

    Amazing Thanks and please make a full series on it thats cover all the basic crud functionality with electron please.... thanks alot

  • @kristypolymath1359
    @kristypolymath1359 5 лет назад +2

    On Reddit someone told me to stay away from Electron because it was too complicated for me. I want to make simple desktop gui-based apps using JavaScript in the front end and Python in the backend.

  • @MohMed-cx2bl
    @MohMed-cx2bl 5 лет назад

    your work is so great ,i love it

  • @AryanLokar
    @AryanLokar 5 лет назад

    I love how u explain things

  • @mystical124
    @mystical124 5 лет назад +6

    I am unable to get process to show in the consoles tab of the developers menu, I just get the error "Uncaught ReferenceError: process is not defined
    at index.html:19"
    Any help?

    • @Bramblebrain
      @Bramblebrain 5 лет назад +9

      Inside your "win = new BrowserWindow({width: 800,....}" you need to add "webPreferences: { nodeIntegration: true }"

  • @gevorgg631
    @gevorgg631 7 лет назад +4

    Thank's that you exist man!!!)))

  • @hirephpdevelopers3840
    @hirephpdevelopers3840 7 лет назад +2

    Interesting. I will try it soon.

  • @lurker_pack
    @lurker_pack 7 лет назад +2

    I already have an idea which app I going to build :) Waiting for more lessons

    • @TraversyMedia
      @TraversyMedia  7 лет назад +19

      Yeah, this is one of those technologies that really makes your gears move and anxious to start creating stuff

    • @DevanSisson
      @DevanSisson 7 лет назад +2

      Traversy Media no kidding!

  • @jamesmcgril6793
    @jamesmcgril6793 7 лет назад

    This is awesome! Very great tutorial! I've' seen some of your stuff now and I have subscribed to your channel. So, I stopped coding back in 20001 after burning out. I was writing ActiveX and inserting into web browser to distribute. I am finally ready to get back in the game and finally have hope since cross-platform support is here and embedded into the browser. I was looking for a good framework to start with like MEAN. Since, I want to re-write some apps I developed for a vendor years ago, I will still be able to deploy via web server. This is great!

  • @giovanigenerali
    @giovanigenerali 7 лет назад

    Very nice introduction, thank you.

  • @Bah-wf5cf
    @Bah-wf5cf 3 года назад

    great work man

  • @raghav9o9
    @raghav9o9 5 лет назад +2

    At 18:30 it showing me process is not defined and also renderer is not defined pls help me....

    • @1045geo
      @1045geo 5 лет назад

      have you found any solution to this issue? I get the same error.

    • @raghav9o9
      @raghav9o9 5 лет назад +1

      @@1045geo yes

    • @raghav9o9
      @raghav9o9 5 лет назад +2

      @@1045geo let win = new BroswerWindow({
      webPrefrences:{nodeIntegration : true}
      })

    • @1045geo
      @1045geo 5 лет назад +1

      @@raghav9o9 thank you. I will give it a try. Cheers!

  • @fvgoya
    @fvgoya 7 лет назад +9

    I just don't understand one thing: Why install local and global? Only local is not enough? With that way, will not have 2 versions of the same thing? Thank you!

    • @sairajdas6692
      @sairajdas6692 6 лет назад +1

      Did you find out why?

    • @alkismavridis1
      @alkismavridis1 6 лет назад

      same question here... why installing 2 times?

    • @truecoderltd798
      @truecoderltd798 6 лет назад

      so you dont have to be in the project dir to run `electron .`

    • @alkismavridis1
      @alkismavridis1 6 лет назад +1

      truecoder I get the concept of global installation. But why both global and local is the question. You need one of them, no matter which. But not both.

    • @YaserAz
      @YaserAz 6 лет назад

      Hope you get the answer, but if not so in general when we install a module , plugin or some library globally we can access it from anywhere inside our machine even outside our current project directory . Hope that helps .

  • @famstudios6078
    @famstudios6078 4 года назад

    and here i was thinking javascript was just for web design, had given up on it thank you for this

  • @Evakhan.503
    @Evakhan.503 6 лет назад

    Excellent video... learn a lot

  • @stuvius
    @stuvius 7 лет назад

    Sweet intro!
    Got any suggestions about solid database managers to use with Electron?
    Been using Sqlite3 but seems to struggle with Electron for some reason.

  • @mistersz
    @mistersz 6 лет назад

    Traversy
    you are the best !

  • @abdullahfazli9996
    @abdullahfazli9996 6 лет назад

    Very nice.
    When will you make a course on electron?

  • @MichaelSartore
    @MichaelSartore 5 лет назад

    Great tutorial. Thanks! Would love to see more on this from you. Couldn't find part 2 (if it's done)

  •  7 лет назад

    Perfect intro, thanks

  • @enrico8730
    @enrico8730 7 лет назад

    Thank you TraversyMedia

  • @Chandasouk
    @Chandasouk 7 лет назад +1

    You put me on to a lot of cool stuff!

  • @spirytusrektus
    @spirytusrektus 7 лет назад

    Your vids are awesome, thanks a lot.

  • @sahara8742
    @sahara8742 7 лет назад

    Hello, this was a very good video! Will you make more Electron videos?

  • @marcaupont9145
    @marcaupont9145 7 лет назад

    Awesome!! Lots of potential!!!!

  • @piotrkuziak4760
    @piotrkuziak4760 7 лет назад

    Nice tutorial as always. So is it possible to deploy electron to the server along with normal app and create a web app that could cooperate with user's machine?

  • @muzafferhassan
    @muzafferhassan 7 лет назад

    Thanks for the tutorial.. looking forward for more videos on same topic... :)

  • @pauldhartley
    @pauldhartley 5 лет назад

    I couldn't find the promised follow up. Did you stop looking at Electron? Otherwise a great series of videos, thank you.

  • @MrKillerBEE123
    @MrKillerBEE123 3 года назад

    Brad,
    Would love if you did one with webusb and electron! :)

  • @ibrahimmohammed3484
    @ibrahimmohammed3484 7 лет назад

    you're awesome, i owe you a lot man, wish that one day i could pay you back

  • @bongbuincyril6150
    @bongbuincyril6150 4 года назад

    Thanks man alot for this work

  • @coolcolumbus
    @coolcolumbus 5 лет назад

    Thanks Brad!

  • @jagatjyotituladhar6234
    @jagatjyotituladhar6234 7 лет назад

    great tutorial
    could u tell me anything to get battery info?

  • @the-mailmann
    @the-mailmann 6 лет назад

    I'm so happy that this exists so that I don't have to touch C++ or C#

  • @AlphaScorpii86
    @AlphaScorpii86 7 лет назад +3

    Thanks for the tutorial! Wouldn't it be better to download the CSS file locally? What about using the app without an internet connection?

    • @DevanSisson
      @DevanSisson 7 лет назад

      Jean-Simon Robert Ouimet I would say yes. However, for the purposes of an intro to tutorial, linking it would be fine.

    • @TraversyMedia
      @TraversyMedia  7 лет назад +5

      Yes definitely. I should have mentioned that. I only did it to make things quicker.

  • @coolcolumbus
    @coolcolumbus 5 лет назад +16

    Had to add
    webPreferences: {
    nodeIntegration: true
    }
    in win = new BrowserWindow function

  • @warrenzingwena2075
    @warrenzingwena2075 4 года назад

    Thanks , you really help me bro!

  • @arvindmohansk01
    @arvindmohansk01 6 лет назад

    Hi Brad, This was a brilliant video and I hope to see more on this. I am new to programming. A quick question, how do I package this as a .exe and provide it for someone or other system to fetch their system info.

  • @michaelianrabara1364
    @michaelianrabara1364 5 лет назад

    do you have a full POS system course for electron?

  • @metaorior
    @metaorior 7 лет назад

    Please continue !!!! ♥

  • @confearsion3778
    @confearsion3778 5 лет назад +1

    please tell me, what is difference between win.on('closed') and app.on('window-all-closed'), isn't there only one window ? And closing window does not mean closing entire app?

  • @omer8836
    @omer8836 7 лет назад

    Great! please make a tutorial series and thank you for your efforts, great channel, Keep it up (y)

  • @rogerwprice
    @rogerwprice 7 лет назад

    Nice - very interesting... Thanks

  • @sadsayeed
    @sadsayeed 7 лет назад

    "BOSS"?!?! :D
    [Just kidding] :D :P
    Thank you for the humble and awesome video, it's a great head start for electron.js and me. #respect :)
    I'll use electron to make all my JS (vanilla) web apps trying to make them into offline standalone desktop apps, let's see... Thanks!! :)

  • @xx482
    @xx482 7 лет назад

    Hi Traversy,
    it a good tutorial.

  • @giorgimerabishvili8194
    @giorgimerabishvili8194 7 лет назад

    Thank you very much! You're really amazing!

  • @Pedogoat
    @Pedogoat 7 лет назад

    Are you going to do more keystone.js videos? The first one you did was great and sparked my interest for it!

    • @TraversyMedia
      @TraversyMedia  7 лет назад

      Pedogoat i plan on it. Im still trying to figure out what i want to do with it

  • @JacobDavidCCunningham
    @JacobDavidCCunningham 7 лет назад

    Man how awesome, I'm a web developer myself and the ability to use that to build desktop apps cross platform? ahhhhh
    thanks for this intro
    edit: shit... 3:45 does this mean you can't package the apps as say a .exe that doesn't require installing other stuff (like node.js) it would just come inside that .exe as an execution command or something? That would suck if you have to setup an environment that runs an electron app.
    I use Visual Studio Code that for Linux/Windows I just download a file and run it so maybe...

  • @RaylinAquino_
    @RaylinAquino_ 4 года назад

    great tutorial , thanks a lot

  • @leck_meine_ente416
    @leck_meine_ente416 7 лет назад

    sweet Intro c:! you earned a new sub

  • @samartajshaikh2601
    @samartajshaikh2601 7 лет назад

    brother, where is the gear icon? it is not in the description

  • @venkateshputta1313
    @venkateshputta1313 6 лет назад

    This is good
    But I had a small doubt will it use any default browser to show html pages

  • @wincentyzkielczy9162
    @wincentyzkielczy9162 7 лет назад

    great video, thanks!

  • @cavanad7946
    @cavanad7946 5 лет назад +2

    I got an error.
    Uncaught ReferenceError: require is not defined
    Uncaught ReferenceError: process is not defined
    I am not sure where it went wrong. I followed through code, every detail and I still get the error. Is it my JS?

    • @sagardhomaneofficial
      @sagardhomaneofficial 5 лет назад

      Try by adding following code
      My First Electron App

    • @kristypolymath1359
      @kristypolymath1359 5 лет назад

      @@sagardhomaneofficial What does adding HTML code have to do with JavaScript errors? There was nothing in his error that he posted that suggested that id="output" was even needed.

  • @amra.haleem5175
    @amra.haleem5175 Год назад

    جزاك الله خيرا

  • @PranayKumarPaine
    @PranayKumarPaine 7 лет назад +2

    Please do a webseries on complete app with electron (notes app for example).
    Thank You

  • @Ati1254
    @Ati1254 4 года назад

    Thanks Brad