Initial commit: Tool Website with Password Generator, Image Converter and Bookmarks

This commit is contained in:
danielvici123
2025-05-16 00:40:51 +02:00
commit d478acc6e3
19 changed files with 4049 additions and 0 deletions

28
start.js Normal file
View File

@@ -0,0 +1,28 @@
const { exec } = require('child_process');
const os = require('os');
// Starte den Entwicklungsserver
exec('npm run dev', (error, stdout, stderr) => {
if (error) {
console.error(`Fehler beim Starten des Servers: ${error}`);
return;
}
});
// Warte kurz und öffne dann den Browser
setTimeout(() => {
const platform = os.platform();
const url = 'http://localhost:3000';
switch (platform) {
case 'win32':
exec(`start ${url}`);
break;
case 'darwin':
exec(`open ${url}`);
break;
default:
exec(`xdg-open ${url}`);
break;
}
}, 3000); // Warte 3 Sekunden, bis der Server gestartet ist