Files
radio-explorer/server/index.js
Marco Mooren f6cdfd975c feat: integrate Electron for desktop application support
- Added Electron entry point in `electron/main.js` to run the Express server in-process and open the main application window.
- Updated `package.json` to include Electron dependencies and scripts for building and running the application.
- Refactored server startup logic into `server/start.js` for better modularity and to support both CLI and Electron usage.
- Implemented environment variable handling for database and image paths to accommodate Electron's packaging.
- Created a script `server/scripts/promote-morphix.js` to merge admin and morphix accounts into a single user.
- Adjusted image root path resolution in `server/media/images.js` to allow for environment variable overrides.
- Cleaned up `server/index.js` to delegate server initialization to the new `startServer` function.
2026-05-11 18:55:02 +02:00

10 lines
297 B
JavaScript

// CLI entry: `node server/index.js` (or `npm start`). For the Electron build,
// see `electron/main.js`, which calls `startServer()` directly.
import { startServer } from './start.js';
startServer().catch((err) => {
console.error('[oradio] failed to start:', err);
process.exit(1);
});