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

@@ -12,6 +12,7 @@ import {
import { $ } from "execa";
import fs from "fs-extra";
import pc from "picocolors";
import { commandExists } from "../utils/command-exists";
type TursoConfig = {
dbUrl: string;
@@ -26,12 +27,7 @@ type TursoGroup = {
};
async function isTursoInstalled() {
try {
const result = await $`turso --version`;
return result.exitCode === 0;
} catch (error) {
return false;
}
return commandExists("turso");
}
async function isTursoLoggedIn() {