Hi, I’m Su Lei! 👋
In this beginner-friendly tutorial, I’ll guide you step by step through building a cute and simple Pomodoro-style timer app using React. Then, we’ll wrap it with Electron.js so you can run it as a real desktop application! 🖥️
Don’t worry if you’re new to all this—we’ll take it slow and make it fun!
- ✅ How to create a React app with TypeScript
- ✅ How to integrate Electron for a desktop experience
- ✅ How to test and build your app locally
- ✅ How to keep your project clean and organized
- Node.js installed
(It comes withnpx, which we’ll use to create the project)
Open your terminal and run:
npx create-react-app work-faster --template typescriptThis creates a new folder called work-faster with a pre-configured React + TypeScript setup. Then move into your new project folder:
cd work-fasterStill inside the project folder, run:
npm install --save-dev electronBefore we wire up Electron, make sure React works:
npm run startThis should open the app in your browser at http://localhost:3000
🎉 If you see the React welcome screen, you're all set!