@enoughio/create-node-project
v0.1.3
Published
CLI to scaffold Node.js backend projects
Readme
@enoughio/create-node-project
Interactive CLI to scaffold a Node.js backend starter project.
It currently supports TypeScript/JavaScript selection, optional Express/Prisma/Zod/Dotenv setup, project structure generation, dependency installation, Git initialization, and starter README generation.
Installation
Use with npx:
npx @enoughio/create-node-project my-appOr install globally:
npm install -g @enoughio/create-node-projectThen run:
@enoughio/create-node-project my-appUsage
npx @enoughio/create-node-project my-appThe CLI will ask:
- Language:
TypeScriptorJavaScript - Tools to include:
- Express
- Prisma
- Zod
- Dotenv
- If Prisma is selected: datasource provider (
postgresql,mysql, orsqlite)
What it generates
Base output:
my-app/
├── src/
│ └── index.(ts|js)
├── package.json
├── README.md
├── .gitignore
└── (optional files/folders based on selections)If Express is selected:
src/
├── controllers/
├── routes/
├── middlewares/
├── Utils/
└── config/If Zod is selected:
src/schemas/user.schema.(ts|js)If Dotenv is selected:
.env
.env.example
src/config/env.(ts|js)If Prisma is selected:
prisma/ # created by `prisma init`
src/lib/prisma.jsGenerated scripts
For TypeScript projects:
{
"build": "tsc",
"start": "node dist/index.js"
}For JavaScript projects:
{
"start": "node src/index.js"
}Included setup actions
- Installs selected dependencies
- Installs Prisma packages when Prisma is selected
- Runs
npx prisma init --datasource-provider <provider>andnpx prisma generate - Creates
.gitignore - Runs
git init, createsmainbranch, and makes an initial commit
Current notes
- This README reflects the current implementation in
src/index.ts. - If behavior changes, update this file to keep CLI docs in sync.
License
MIT
