How to BUILD a DESKTOP app with HTML, CSS & JavaScript using Electron JS!

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ก.ย. 2022
  • Learn how to code a Desktop App with HTML, CSS & JavaScript using Electron! We build a simple note taking app using the file system!
    Source code: github.com/TylerPottsDev/elec...
    Documentation: www.electronjs.org/docs/latest
    Electron Packager: github.com/electron/electron-...
    // JOIN THE DISCORD SERVER!
    / discord
    // BECOME A MEMBER TO UNLOCK MORE CONTENT!
    th-cam.com/users/tylerpottsjoin
    // MY GEAR FOR CODING AND TH-cam
    Blue Yeti Microphone: amzn.to/3jr3l7T
    Microphone Stand: amzn.to/35B9LMN
    Chair: amzn.to/3dWds3F
    Thunderbolt Dock: amzn.to/3osBF6u
    Monitor: amzn.to/37I8KoR
    Screenbar Light: amzn.to/3iFRS7w
    All of these products I own and have tested!
    // FOLLOW ME ON TWITTER
    / tyler_potts_
    // INTERESTED IN GAME DEV?
    Game development channel: / muddywolf
    // CHECK OUT MY GAME
    play.google.com/store/apps/de...
    // DO THESE SIMPLE STEPS
    LIKE, SUBSCRIBE & SHARE
  • แนวปฏิบัติและการใช้ชีวิต

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

  • @imiramikhanirami3624
    @imiramikhanirami3624 7 หลายเดือนก่อน +5

    Incredible tutorial! I rarely comment on coding tutorials but this one worked perfectly and was quick and thorough. Thank you

  • @IngridKen
    @IngridKen 15 วันที่ผ่านมา +1

    if your wondering about his vscode theme i think it's the SynthWave 84'

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

    Wow just wow, was looking for it, Thanks my men, cheers

  • @dubyIndustries
    @dubyIndustries 4 หลายเดือนก่อน

    Huge Help.
    Awesome.
    Thank you..

  • @MyName-cb1yl
    @MyName-cb1yl หลายเดือนก่อน

    Love your content. Keep it up .

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

    Cool, thank you!

  • @arafatgeneralservices2688
    @arafatgeneralservices2688 ปีที่แล้ว

    How do I pull up those effects slots on the left of the setuper?

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

    Hi everyone I know this is an older video however I poked around for a while and learned a more efficient way of closing the program. currently the way it is on here is that it is still open and running in the background.
    here is the main.js code - hopefully this helps someone:)
    const {app, BrowserWindow} = require('electron');
    let win = null;
    function createWindow () {
    const win = new BrowserWindow({
    "title": "Title",
    "fullscreen": true,
    "closable": false
    });
    win.setMenu(null)
    win.loadFile('src/YourHtmlHere.html');
    win.on("close", () => {
    win = null;
    app.quit();
    });
    }
    app.whenReady().then(createWindow);
    app.on('window-all-closed', () => {
    if(process.platform !== "darwin") app.quit();
    });

  • @sorena.shirzad
    @sorena.shirzad 6 หลายเดือนก่อน

    Thank u for your good training. If we use Jason Server in our program, Is there a way to run Jason's file when we click on .exe file and start pr (without using cmd)?

  • @avtar2565
    @avtar2565 ปีที่แล้ว

    hey bro can u recommend a advance css course , i already completed beginner course but that was not near to good look and funcanility

  • @sculp_vetrov
    @sculp_vetrov 7 หลายเดือนก่อน

    What plugins do you have in visual studio?

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

    Your tutorials are great. After reading this lesson, I thought it was a great intriguing subject. Would you please create a lesson on Electron and basic DB? (SQLITE or LocalStorage or IndexDB). God bless you abundantly for your kind donation and assistance to developers like myself.

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

      Great suggestion! I'll look into making more advanced videos on it, including ones with a DB

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

    Can I change the my app icon?

  • @kumuthuprabhasha2392
    @kumuthuprabhasha2392 11 หลายเดือนก่อน

    I have a problem.. this app can't read or write files with fs. how can I fix it?
    help me please...

  • @audiobookimedyczne
    @audiobookimedyczne 3 หลายเดือนก่อน

    How to add a backroud immage? The html, css way doesnt work.

  • @Panini-Kido
    @Panini-Kido 2 หลายเดือนก่อน

    I have an error “electron. Not found”

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

    Pog!! What's your thoughts on tauri ? Its coming up a lot now a days as an electron competitor

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

      Nothing for us to worry about

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

      Oh interesting! I haven't seen it yet!

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

      @@sweatypotato248 ye, coz finally 95% of the users don't care at all abt how these apps are built, all they want is a good app, but tauri seems a good alternative

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

      It is but from developer perspective its different, A developer will built an app with electron because he knows react or angular but as tauri you can build it but need to learn rust so its a no go, Tauri is a great app but only people who know rust will use it else a website is build so soon wanna launch an Desktop app guess what you already build it use electron but for tauri its different

  • @saturdaywithaadil
    @saturdaywithaadil 4 หลายเดือนก่อน

    hey sir i am too a programmer but not like you i make games but it was incredible challange for me

  • @devindissanayaka8116
    @devindissanayaka8116 5 หลายเดือนก่อน

    What is the extension you use that suggests what to type next 😊

  • @sudheerpa6171
    @sudheerpa6171 3 หลายเดือนก่อน

    What I do now is take dealerships of software companies and sell their billing software.
    I made my own software under my company name and want to sell it, what should I do?
    I have no clear knowledge of software programming and development.
    Is it enough to be fully developed by a software developer?
    Or is it enough to buy the software code and build the software with a developer?
    Which is better

  • @maximeyarns
    @maximeyarns 6 หลายเดือนก่อน

    I have no idea why I'm doing the stuffs, but I'm fairly confident I can now make a simple app based on this all 😂 Thanks!!
    One issue though, the note title says ${data.title} instead of the actual title, I can't seem to figure out why. Any ideas?
    Edit: I added the following:
    const fileName = data.title + '.txt';
    And changed:
    const filePath = path.join(__dirname, 'notes', '$data.title}.text');
    to:
    const filePath = path.join(__dirname, 'notes', fileName);
    Probably super nooby, but it works

    • @Duluper
      @Duluper 6 หลายเดือนก่อน

      You have to use `` not ''

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

    comnts on these kinds of videos and I know for a fact that guys like Nice tutorialm have gotten strikes from TH-cam for having crack info in their

  • @Horrordelic
    @Horrordelic ปีที่แล้ว

    Exe is 148Mb ?

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

      By default Electron will include Chromium inside of your app to run it on it, so no matter how simple your app is, it will be huge xP

    • @Horrordelic
      @Horrordelic ปีที่แล้ว

      @@RodrigoDAgostino Ouch that is a lot, i search this now seems the files Electron produce are 50-250mb even for a hello world :)

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

      @@Horrordelic yeah, exactly! I way around that that I found was to use the locally installed Chrome to run the app while preventing Electron to pack Chromium inside my app. The problem with that is that, if the user has installed Chome in a different directory than the default one, the app won’t run. It is indeed safer to just pack Chromium inside. But there are different alternatives to Electron you could try, like NW.js and Tauru. Those will provide much smaller executables :)

    • @user-md5lz2xq5i
      @user-md5lz2xq5i ปีที่แล้ว

      Helpline📲📥⬆️
      Questions can come in⬆️

  • @Jose-cf8ps
    @Jose-cf8ps 2 หลายเดือนก่อน

    Good, but 150Mb...

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

    Its official Javascript just killed C languages lol

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

      Well, if they can sort the file size issue then maybe but currently any file created with Electron will be packaged with 150mb of Chromium which isn't ideal for small apps! - So C is still a winner for performance and size!

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

      @@TylerPotts until we run it through pied piper lol

    • @TylerPotts
      @TylerPotts  ปีที่แล้ว

      😂😂

  • @CedaFTW
    @CedaFTW 6 หลายเดือนก่อน +4

    Pretty annoying how fast you’re going without stopping to explain what you’re doing.

    • @timehash
      @timehash 3 หลายเดือนก่อน

      nah you’re just slow he explained everything very well