Add login, reg, cart, newsletter und access to small batch releases

This commit is contained in:
hasicicsalih committed 2026-04-17 15:05:45 +02:00
1 parent 414967441a
commit fb801e3752
30 files changed
+2979 -246

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
import { spawn } from "node:child_process";
const run = (name, command, args, env = {}) => {
const child = spawn(command, args, {
stdio: "inherit",
shell: process.platform === "win32",
env: { ...process.env, ...env },
});
child.on("exit", (code, signal) => {
if (signal) {
console.log(`${name} stopped with ${signal}`);
return;
}
if (code !== 0) {
console.log(`${name} exited with code ${code}`);
process.exitCode = code;
}
});
return child;
};
const api = run("api", "node", ["server/index.js"], { API_PORT: "4174" });
const vite = run("vite", "node_modules/.bin/vite", []);
const stop = () => {
api.kill("SIGTERM");
vite.kill("SIGTERM");
};
process.on("SIGINT", stop);
process.on("SIGTERM", stop);