rename model list to usercollection & fixed redlated errors

This commit is contained in:
X4Lo committed 2024-04-06 08:56:16 +00:00
1 parent 60b517500f
commit b48b395574
37 files changed
+2479 -1210

No files matched your search

+17 -2
View File
@@ -1,3 +1,4 @@
const { spawn } = require('child_process');
const { app, BrowserWindow } = require('electron');
const path = require('path');
const url = require('url');
@@ -16,7 +17,7 @@ function createWindow() {
win.loadURL(
url.format({
pathname: path.join(__dirname, 'frontend\\dist\\show-z\\browser\\index.html'),
pathname: path.join(__dirname, 'dist\\show-z\\browser\\index.html'),
protocol: 'file:',
slashes: true
})
@@ -27,7 +28,21 @@ function createWindow() {
});
}
app.on('ready', createWindow);
// app.on('ready', createWindow);
app.on('ready', () => {
// Start the Express server
const expressProcess = spawn('node', ['backend/server.js']);
expressProcess.stdout.on('data', (data) => {
console.log(`Express stdout: ${data}`);
});
expressProcess.stderr.on('data', (data) => {
console.error(`Express stderr: ${data}`);
});
// Start the Electron app
createWindow();
});
app.on('window-all-closed', () => {
if (process.platform !== 'darwin') {