Getting Started with Desktop Apps using Electron and the Vue CLI

  Рет қаралды 8,389

Suboptimal Engineer

Suboptimal Engineer

Күн бұрын

Пікірлер: 25
@MustaphaHamoui
@MustaphaHamoui 3 жыл бұрын
Thanks! very useful video! For my own future reference in text: 1- vue create electron-example 2- vue add tailwind (optional) 3- vue add electron-builder 4- npm run electron:serve (can also use yarn)
@capegreg3197
@capegreg3197 3 жыл бұрын
Works great. tailwind looks interesting too.
@SuboptimalEng
@SuboptimalEng 3 жыл бұрын
Def recommend tailwind, it's awesome!
@nilsonoliveira2275
@nilsonoliveira2275 2 жыл бұрын
Man! you've save my day! Thanks a lot!
@SuboptimalEng
@SuboptimalEng 2 жыл бұрын
Glad the video helped!
@BayanBennett
@BayanBennett 3 жыл бұрын
Good video. My best guess for the dark mode flash is that the browser's set `prefers-color-scheme` to `dark`
@SuboptimalEng
@SuboptimalEng 3 жыл бұрын
Ah, interesting! I know absolutely nothing about Electron (other than how to set it up) so this tip will save me quite a bit of googling 😂
@lorismith771
@lorismith771 3 жыл бұрын
This worked really well. The next thing I'm trying to figure out is how to create an .exe with electron-builder.
@lorismith771
@lorismith771 3 жыл бұрын
I just did 'npm run electron:build' and that seemed to work.
@sevenhundred77_
@sevenhundred77_ 3 жыл бұрын
Excellent video
@garryxia5900
@garryxia5900 2 жыл бұрын
nice!
@TheMitchingHour
@TheMitchingHour 3 жыл бұрын
Amazingly helpful! Thank you! I’m wondering if there’s any way to prevent users opening the inspector.
@SuboptimalEng
@SuboptimalEng 3 жыл бұрын
Thanks 🙏🏾 Did a quick goole search to learn that you can prevent the inspector from opening by default. (stackoverflow.com/questions/40304833/how-to-make-the-dev-tools-not-show-up-on-screen-by-default-electron ) Not too sure if you can prevent it completely.
@yoskokleng3658
@yoskokleng3658 Жыл бұрын
And how to build an setup file ? when i did npm rub electron:serve -> it look like in your video but when i copy that build file and share it to my friend's computer. they can't open or install it. pls help
@Imaginativeone_DF
@Imaginativeone_DF Жыл бұрын
How do I integrate vue-devtools?
@bluebird3131
@bluebird3131 3 жыл бұрын
Main Electron app is clearly Discord, should be on the video.
@thiomark7616
@thiomark7616 2 жыл бұрын
heyy can please just push this example to git so i can clone it, because when i run vue add electron-builder it throws errors
@SuboptimalEng
@SuboptimalEng 2 жыл бұрын
I made 2 separate desktop apps with Vue and they are on my GitHub. You can clone Graphite to see how I set up my app.
@yuspergerrard1673
@yuspergerrard1673 3 жыл бұрын
hello does it work on vuejs with a database?
@SuboptimalEng
@SuboptimalEng 3 жыл бұрын
I’m not sure how to set that up but it should be possible - lots of desktop apps like Slack/Discord do that already
@kenharjuna1405
@kenharjuna1405 3 жыл бұрын
so can i just convert my fully completed vue webapp to desktop app with this? instead of build it with electron from the scratch. sorry for bad english, im new to programming, thanks.
@SuboptimalEng
@SuboptimalEng 3 жыл бұрын
I think it depends on whether or not you have a backend for your web app. If it's just a frontend, then it is easier to convert.
@kenharjuna1405
@kenharjuna1405 3 жыл бұрын
@@SuboptimalEng theres a backend for it also. so is it better for me to build from start again, or try to find a way to convert the whole project? thanks alot by the way
@MustaphaHamoui
@MustaphaHamoui 3 жыл бұрын
@@SuboptimalEng It's good practice to have access to the back end through an api. So I would re-architecture my app to have two parts: one for the back end with api access (which lives online), and one for the front end interface which accesses the backend through an api... In that case, you don't need to do anything else to your app than what is mentioned here...
We Fell For The Oldest Lie On The Internet
13:08
Kurzgesagt – In a Nutshell
Рет қаралды 2,6 МЛН
What is WebGPU?
14:09
Suboptimal Engineer
Рет қаралды 66 М.
What's in the clown's bag? #clown #angel #bunnypolice
00:19
超人夫妇
Рет қаралды 43 МЛН
Mom had to stand up for the whole family!❤️😍😁
00:39
ЛУЧШИЙ ФОКУС + секрет! #shorts
00:12
Роман Magic
Рет қаралды 15 МЛН
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 2,4 МЛН
Native Desktop Apps with Angular and Electron
9:43
Fireship
Рет қаралды 251 М.
Electron+Vue+TypeOrm разработка десктопного приложения
30:43
Михаил Каташевцев
Рет қаралды 646
I built the same app 10 times // Which JS Framework is best?
21:58
Fireship
Рет қаралды 2,6 МЛН
Vuetify 3 + Nuxt 3 : Vue.js Will Never Be The Same
13:02
Program With Erik
Рет қаралды 46 М.
How to Set Up ELECTRON in Vite and Vue 3
5:01
LearnVue
Рет қаралды 27 М.
Goodbye Electron and JavaScript. Hello Tauri and Rust!
9:45
Flo Woelki
Рет қаралды 23 М.
Electron vs Tauri: This Was Unexpected!!
9:41
DashCruft
Рет қаралды 43 М.
Parsing Markdown in Vue with the Marked Library
11:33
Suboptimal Engineer
Рет қаралды 9 М.
Building Desktop Apps with Vue - VueConf US 2023
8:09
Vue Mastery
Рет қаралды 7 М.
What's in the clown's bag? #clown #angel #bunnypolice
00:19
超人夫妇
Рет қаралды 43 МЛН