An Intro To Electron - Desktop Apps with JavaScript

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 พ.ย. 2024

ความคิดเห็น • 327

  • @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.

  • @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
    }

  • @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.

  • @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!

  • @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.

  • @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.

  • @williamsgodswill7764
    @williamsgodswill7764 5 ปีที่แล้ว

    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

  • @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

  • @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 .

  • @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.

  • @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 5 ปีที่แล้ว

      Same bro

  • @cervantes01
    @cervantes01 6 ปีที่แล้ว +11

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

  • @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.

  • @freeelectron8261
    @freeelectron8261 6 ปีที่แล้ว +2

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

  • @AkshayKumarX
    @AkshayKumarX 7 ปีที่แล้ว

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

  • @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

  • @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!

  • @abdulstuntin5101
    @abdulstuntin5101 7 ปีที่แล้ว

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

  • @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!

  • @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

  • @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.

  • @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

  • @famstudios6078
    @famstudios6078 4 ปีที่แล้ว

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

  • @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.

  • @JoshDanns
    @JoshDanns 7 ปีที่แล้ว +3

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

  • @stephh4392
    @stephh4392 6 ปีที่แล้ว

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

  • @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. :)

  • @mystical124
    @mystical124 5 ปีที่แล้ว +7

    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 ปีที่แล้ว +10

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

  • @mayaahmed
    @mayaahmed 4 ปีที่แล้ว

    Cool. Awesome introduction to Electron.

  • @mrcalico7091
    @mrcalico7091 7 ปีที่แล้ว

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

  • @sskdev5116
    @sskdev5116 7 ปีที่แล้ว

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

  • @ginoskotheon3
    @ginoskotheon3 7 ปีที่แล้ว

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

  • @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!

  • @coolcolumbus
    @coolcolumbus 5 ปีที่แล้ว +16

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

  • @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

  • @AryanLokar
    @AryanLokar 4 ปีที่แล้ว

    I love how u explain things

  • @khalidelgazzar
    @khalidelgazzar 4 ปีที่แล้ว

    Thanks Brad, nice intro to Electron,

  • @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.

  • @jorgesepulveda8380
    @jorgesepulveda8380 7 ปีที่แล้ว +1

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

  • @billelguechi5831
    @billelguechi5831 6 ปีที่แล้ว

    We are waiting more Brad Good job Bro

  • @shalynm8046
    @shalynm8046 5 ปีที่แล้ว

    This was an awesome intro Brad! Thanks so much.

  • @Muphet
    @Muphet 7 ปีที่แล้ว

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

  • @the-mailmann
    @the-mailmann 6 ปีที่แล้ว

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

  • @brentbrown4766
    @brentbrown4766 4 ปีที่แล้ว

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

  • @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!

  • @Ati1254
    @Ati1254 4 ปีที่แล้ว

    Thanks Brad

  • @jabbergabber5190
    @jabbergabber5190 7 ปีที่แล้ว

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

  • @Bah-wf5cf
    @Bah-wf5cf 2 ปีที่แล้ว

    great work man

  • @pauldhartley
    @pauldhartley 4 ปีที่แล้ว

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

  • @doommega
    @doommega 6 ปีที่แล้ว

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

  • @gladimirjacobsen6356
    @gladimirjacobsen6356 7 ปีที่แล้ว +6

    great tutorial brad

  • @mistersz
    @mistersz 6 ปีที่แล้ว

    Traversy
    you are the best !

  • @MrKillerBEE123
    @MrKillerBEE123 3 ปีที่แล้ว

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

  • @bambanx
    @bambanx 7 ปีที่แล้ว +16

    16k of views and 557 guys, come on !!! push like!

    • @astantine85
      @astantine85 7 ปีที่แล้ว +5

      keep "pushing" like that and you won't get any likes

    • @cherokeewarcry
      @cherokeewarcry 7 ปีที่แล้ว

      This isn't Ivan's video. "He" won't be "not" getting likes because he pushed for them...

  • @enrico8730
    @enrico8730 7 ปีที่แล้ว

    Thank you TraversyMedia

  • @amra.haleem5175
    @amra.haleem5175 ปีที่แล้ว

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

  • @hirephpdevelopers3840
    @hirephpdevelopers3840 7 ปีที่แล้ว +2

    Interesting. I will try it soon.

  • @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

  • @MohMed-cx2bl
    @MohMed-cx2bl 5 ปีที่แล้ว

    your work is so great ,i love it

  • @MichaelSartore
    @MichaelSartore 4 ปีที่แล้ว

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

  • @coolcolumbus
    @coolcolumbus 5 ปีที่แล้ว

    Thanks Brad!

  • @marcaupont9145
    @marcaupont9145 7 ปีที่แล้ว

    Awesome!! Lots of potential!!!!

  • @giovanigenerali
    @giovanigenerali 7 ปีที่แล้ว

    Very nice introduction, thank you.

  • @pankaj_9998
    @pankaj_9998 5 ปีที่แล้ว +1

    Hello sir, if you could make a series on "how to make desktop app with Electron". That would be very useful. thanks

  • @JMSTipsAndTricks
    @JMSTipsAndTricks 7 ปีที่แล้ว +1

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

  • @sanjaymahato9431
    @sanjaymahato9431 7 ปีที่แล้ว

    Louder and more clear voice this time :-)

  • @GeekMustHave
    @GeekMustHave 7 ปีที่แล้ว

    Another great video. Desktop applications built from the guts of web development, reuse your JavaScript skills. I understand there are some concerns about resource management with Electron APp's?

  • @LifeIsGood1992
    @LifeIsGood1992 5 ปีที่แล้ว

    you're a lifesaver !

  • @sahara8742
    @sahara8742 7 ปีที่แล้ว

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

  • @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...

  • @soloafrican4842
    @soloafrican4842 3 ปีที่แล้ว

    finally, i found what I need

  • @bongbuincyril6150
    @bongbuincyril6150 4 ปีที่แล้ว

    Thanks man alot for this work

  • @PranayKumarPaine
    @PranayKumarPaine 7 ปีที่แล้ว +2

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

  • @ibrahimmohammed3484
    @ibrahimmohammed3484 7 ปีที่แล้ว

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

  • @Evakhan.503
    @Evakhan.503 6 ปีที่แล้ว

    Excellent video... learn a lot

  •  7 ปีที่แล้ว

    Perfect intro, thanks

  • @abdullahfazli9996
    @abdullahfazli9996 5 ปีที่แล้ว

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

  • @spirytusrektus
    @spirytusrektus 7 ปีที่แล้ว

    Your vids are awesome, thanks a lot.

  • @StaticCharge1
    @StaticCharge1 4 ปีที่แล้ว +15

    2 and a half years later electron is on 7.1.7 lol

    • @mulanszechuansauceisthemeaning
      @mulanszechuansauceisthemeaning 4 ปีที่แล้ว +8

      and one month after your comment it's 8.0.0

    • @mostafaalmahmud
      @mostafaalmahmud 4 ปีที่แล้ว

      @@mulanszechuansauceisthemeaning and @Static Charge Now 8.2.0...!!!

    • @NMNaufaldo
      @NMNaufaldo 4 ปีที่แล้ว

      Now 9.0.4 XD

    • @CompilingInput
      @CompilingInput 4 ปีที่แล้ว

      R they just adding new single line of code as a feature n compiling into a new version or what lol 😂

  • @sirturnables
    @sirturnables 5 ปีที่แล้ว +1

    If, while installing electron, you got this error: "Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/electron/.electron'", use:
    sudo npm install -g electron --unsafe-perm=true --allow-root
    If you're not using linux, do not add 'sudo'.

  • @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.

  • @james-gang
    @james-gang 5 ปีที่แล้ว

    super cool, thanxx

  • @navzme
    @navzme 7 ปีที่แล้ว

    Well done.

  • @omer8836
    @omer8836 7 ปีที่แล้ว

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

  • @confearsion3778
    @confearsion3778 4 ปีที่แล้ว +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?

  • @warrenzingwena2075
    @warrenzingwena2075 4 ปีที่แล้ว

    Thanks , you really help me bro!

  • @RaylinAquino_
    @RaylinAquino_ 4 ปีที่แล้ว

    great tutorial , thanks a lot

  • @natansevero4272
    @natansevero4272 7 ปีที่แล้ว

    Best tutorial!

  • @rogerwprice
    @rogerwprice 7 ปีที่แล้ว

    Nice - very interesting... Thanks

  • @lingchaocao1870
    @lingchaocao1870 3 ปีที่แล้ว

    Super cool...

  • @muzafferhassan
    @muzafferhassan 7 ปีที่แล้ว

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

  • @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.

  • @Chandasouk
    @Chandasouk 7 ปีที่แล้ว +1

    You put me on to a lot of cool stuff!

  • @metaorior
    @metaorior 6 ปีที่แล้ว

    Please continue !!!! ♥

  • @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

  • @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 .

  • @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?

  • @husainahmmed9025
    @husainahmmed9025 7 ปีที่แล้ว

    This is awesome