add express, automated mongodb atlas setup, fix stack architech

This commit is contained in:
Aman Varshney
2025-04-07 21:32:22 +05:30
parent c6c73fce76
commit 2cf01d155b
38 changed files with 902 additions and 393 deletions

View File

@@ -0,0 +1,16 @@
import { execa } from "execa";
export async function commandExists(command: string): Promise<boolean> {
try {
const isWindows = process.platform === "win32";
if (isWindows) {
const result = await execa("where", [command]);
return result.exitCode === 0;
}
const result = await execa("which", [command]);
return result.exitCode === 0;
} catch {
return false;
}
}