UNPKG

quick-node-server

Version:

A CLI tool to generate a Node.js project with optional MongoDB setup.

17 lines (12 loc) 472 B
import fs from "fs"; import createServerFile from "./createServerFile.js"; import finishSetup from "./finishSetup.js"; export default function setupNode(rl, projectPath) { console.log("🚀 Setting up a Node.js Backend without MongoDB..."); // Generate the server.js file without MongoDB support createServerFile(false); // Create .env file with only PORT variable fs.writeFileSync(".env", "PORT=5000"); // Complete setup finishSetup(rl, projectPath); }