A CLI tool to create a no-framework backend project with Node.js or Bun
npm install no-framework-cliA CLI tool to scaffold a backend project with no framework, using Node.js or Bun, npm or pnpm, and JavaScript or TypeScript.
No installation needed! Simply use the npm create or pnpm create command to scaffold a new project.
Run the following command to create a new project:
``bash`
npm i no-framework-cli
Or if you prefer pnpm:
`bash`
pnpm i no-framework-cli
The CLI will prompt you for:
- Project name
- Runtime: Node.js or Bun
- Package manager: npm or pnpm
- Language: JavaScript or TypeScript
It will create a folder with the project name containing:
- src/ directory with subfolders: handler, service, input-validation, dao-layer, business-validationpackage.json
- configured for your choicestsconfig.json
- if TypeScript is selectedindex.js
- A basic or index.ts file
To develop this CLI:
1. Clone the repo
2. Run npm installnode index.js
3. Run to test
To publish:
1. Update version in package.json
2. Run npm publish`
ISC