Run in Development
Once the starter is created, the next step is to make sure the app actually opens.
At this stage, the goal is simple: learn which command starts the desktop app and how to tell desktop mode from web-only preview mode.
1. Move into the project folder
cd my-app2. Install dependencies
npm install3. Start development mode
npm run app:devThis runs frontron dev behind the starter scripts.
It connects:
- the web dev command from
frontron.config.ts - the Electron desktop app through Frontron support
You should see a desktop window, not only a browser tab.
By contrast, npm run dev is web preview only. It does not attach the desktop bridge.
4. What should you look for?
On the first run, check these things:
- the desktop window opens
- the custom title bar is visible
- the starter screen renders
5. Normal edit loop
- Change a file
- Save it
- Check the result in the app window
React updates are usually fast. Runtime-side changes may require a restart, depending on what changed.
6. First things to check when it fails
If the window does not open
- Run
npx frontron checkfirst - Make sure
npm installfinished successfully - Check the terminal for runtime errors
- Check that no other process is already using the same port
If you get a blank page
Run npx frontron check first.
Start by checking that vite.config.ts and the root frontron.config.ts use the same development port and URL.
If bridge-related UI looks wrong
If you see Web preview in the title bar, or a message such as Desktop bridge unavailable, check:
- that you ran
npm run app:dev, notnpm run dev - that your renderer code imports
frontron/client - that the terminal does not show runtime or preload errors
TIP
It is better to get the app opening once before heavy customization.