How to Create a Desktop App using React, Electron, and TailwindCSS

  Рет қаралды 3,357

Code Tega

Code Tega

Күн бұрын

Do you want to create a Desktop app using React? Here's how you do it.
In this tutorial, learn how to build a cross-platform desktop application using React, Electron, and TailwindCSS. We'll cover the basics of setting up your development environment, integrating React with Electron, and styling your app with TailwindCSS for a sleek, modern look.
Timestamps:
00:00 Intro
00:30 Start Project
00:50 Initialize Electron
01:59 Install Dependencies
03:40 Install React
09:35 Setup Tailwind
GitHub Repo: github.com/CodeTega/desktopRe...
Don't forget to like, subscribe, and hit the bell icon for more tutorials like this! Let's dive into building powerful desktop apps together.
Let's cooooooode!

Пікірлер: 37
@hesamalavi495
@hesamalavi495 16 күн бұрын
Thanks a billion mate
@gustavo-seedcode
@gustavo-seedcode 16 күн бұрын
tremendo amigo, te ganaste un suscriptor :)
@user-fm4wm5xx1q
@user-fm4wm5xx1q 21 күн бұрын
Thanks bro... Tailwind initialization was the thing that was not able to do
@CodeTega
@CodeTega 20 күн бұрын
Anytime! Let me know if there is anything related you think I should make a video on! Appreciate the support and feedback, means a lot!
@nubcops220
@nubcops220 15 күн бұрын
Can you please upload a short video on how to use the route thing in React with electron? I have been trying for the past 4 hours by watching tutorials and trying to read the react docs and nothing is working. Your tutorials are so easy to understand and directly to the point !
@CodeTega
@CodeTega 15 күн бұрын
I’ll get one made for sure!
@nubcops220
@nubcops220 14 күн бұрын
@@CodeTega thank you man, I wish I could support you financially I am currently in a 3rd world country we dont even have paypal. Once I get the chance I will you really help lots of people on daily basis much ❤️
@LakhveerSingh-r7k
@LakhveerSingh-r7k Күн бұрын
please make a tutorial for building an exe file from this setup
@pedrogarateguy3261
@pedrogarateguy3261 23 күн бұрын
Que capo!! 😃👍🏼
@CodeTega
@CodeTega 23 күн бұрын
Gracias Hermano!
@mubeenmubeenfr
@mubeenmubeenfr 22 күн бұрын
Make more videos on electron js project bro...thanks for the explanation
@CodeTega
@CodeTega 22 күн бұрын
Appreciate the feedback! Means a lot. I have one coming on connecting databases here soon for electron.
@mubeenmubeenfr
@mubeenmubeenfr 21 күн бұрын
@@CodeTega ohh that's good...iam waiting for that bro
@user-cm8cj7ci2s
@user-cm8cj7ci2s 17 күн бұрын
how to build this app for window and linux
@peterkibet7720
@peterkibet7720 9 күн бұрын
Its cross platform runs on any os, personally using ubuntu
@aaditya_ai
@aaditya_ai 20 күн бұрын
Great content! Instant subscribed ! Can you make next tutorial on supabase with electron like supabase oauth and basic crud.
@CodeTega
@CodeTega 20 күн бұрын
I appreciate that! Thank you! And that’s a great idea, I’ll get on it
@aymericcappelle9104
@aymericcappelle9104 6 күн бұрын
I have an error when I clone your project, install with npm & start, only on MacOS. "[plugin-webpack] Launching dev servers for renderer process code." The app doesnt launch, do you have an idea? Thanks for the video :)
@CodeTega
@CodeTega 5 күн бұрын
I’ll look into it and get a solution
@SmeetBarot
@SmeetBarot 15 күн бұрын
Hello , how can i create exe file ?
@cmtg4471
@cmtg4471 3 күн бұрын
Just a quick question, hav you tried electron-vite? Can we add tailwind css if I built my electron-react app in vite?
@CodeTega
@CodeTega 3 күн бұрын
You can, I think the rendering might be different in local, but it should be a similar set up as in this video.
@cmtg4471
@cmtg4471 2 күн бұрын
@@CodeTega I just made it work on the electron-vite just now, and it looks like its pretty similar on how you installed it, there are some settings that you really need to dig into since it was not present on any documentation and there is hardly no references on the web, thank goodness I found something that work for the project I am working on, and also thanks for the quick response.
@sanket4493
@sanket4493 6 күн бұрын
Which VS theme is this?
@CodeTega
@CodeTega 5 күн бұрын
It’s called Shades of Purple. It’s awesome
@user-pm5rk1bt4h
@user-pm5rk1bt4h 19 күн бұрын
suggest me how to perform routing in this.. as i have setup the electron react application using this process
@CodeTega
@CodeTega 19 күн бұрын
You can npm install react-router-dom Wrap your app in tags Thins in your app handle routing with react router dom library Routes and then Route
@CodeTega
@CodeTega 19 күн бұрын
I’ll make a tutorial on this
@user-pm5rk1bt4h
@user-pm5rk1bt4h 17 күн бұрын
@@CodeTega i did the same, when i am adding a single component in my root.render i am able to see but when i add the following in root.render on npm start it shows just a white screen, i dont know why, plus how to use the fetch, axios and all in the application. please help
@user-pm5rk1bt4h
@user-pm5rk1bt4h 17 күн бұрын
@@CodeTega please do
@user-pm5rk1bt4h
@user-pm5rk1bt4h 16 күн бұрын
@@CodeTega any updates?
@Bright-Great
@Bright-Great 25 күн бұрын
how can we use database and convert it into an installable software?
@CodeTega
@CodeTega 25 күн бұрын
There are a couple options and I’m going to make a couple videos on them now that you brought it up. You can use an noSql db like firebase if users are going to be required an internet connection and have an authentication service. But if you want an air gapped database style working within your app, then something like SQLlite would be ideal. But that’s a great idea for a video so I’ll make some content on that. Thank you!
@kvazaios5026
@kvazaios5026 24 күн бұрын
as @CodeTega said SQLlite would be ideal for an installable software. You can set up an express api inside the main process of the electron app and use Sequalize ORM that has an SQLlite driver. You can still use mysql as well if you think that SQLlite does not satisfy your app's requirements, but then on every installation you should also install mysql on your client's computer. I am pretty sure you can make a custom installer that also contains mysql but it's a bit complicated, especially if the target group has no technical knowledge
@intoellesmind2619
@intoellesmind2619 21 күн бұрын
This was a godsend. I was struggling so much trying to connect Tailwind to my already made electron + vitejs project. Any idea why Bootstrap worked for that project, but when installing tailwind it all just went to hell? The main problem was that Electron didn't really recognize that the generated /dist files were for the body in the css case. Then, it tried finding files in C: instead of dist/assets/. I tried using base ref and every solution under stackoverflow and chatgpt, but to no avail.
@CodeTega
@CodeTega 21 күн бұрын
Yeah that sound right in line with all the style integrations issues electron has. Ill try to duplicate it and see what I run across. Tailwind is amazing, but the implementation across frameworks is tricky and for sure needs some work on their end.
Electron vs Tauri: This Was Unexpected!!
9:41
DashCruft
Рет қаралды 39 М.
ELECTRON: why people HATE it, why devs USE it
17:19
The Linux Experiment
Рет қаралды 186 М.
Smart Sigma Kid #funny #sigma #comedy
00:40
CRAZY GREAPA
Рет қаралды 8 МЛН
Every Framework Sucks Now
24:11
Theo - t3․gg
Рет қаралды 123 М.
Build a FULL Web App With Claude With 2 SCREENSHOTS!
17:36
Riley Brown
Рет қаралды 51 М.
Goodbye Electron and JavaScript. Hello Tauri and Rust!
9:45
Flo Woelki
Рет қаралды 14 М.
How to integrate React into an Electron App? 🔥
23:14
Atharva Deosthale
Рет қаралды 10 М.
Nature's Incredible ROTATING MOTOR (It’s Electric!) - Smarter Every Day 300
29:37
Every React Concept Explained in 12 Minutes
11:53
Code Bootcamp
Рет қаралды 509 М.
Complex Animations with Framer Motion & React || useAnimate Hook
13:48
Проверил, как вам?
0:58
Коннор
Рет қаралды 13 М.
Что делать если в телефон попала вода?
0:17
Лена Тропоцел
Рет қаралды 3 МЛН
Look, this is the 97th generation of the phone?
0:13
Edcers
Рет қаралды 7 МЛН
Как бесплатно замутить iphone 15 pro max
0:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН