A CLI tool to create a no-framework backend project with Node.js or Bun
npm install create-no-frameworkA CLI tool to scaffold a backend project with no framework, using Node.js or Bun, npm or pnpm, and JavaScript or TypeScript.
To use this tool, you need to install it globally or use npm create or pnpm create.
First, publish this package to npm (or use npx if not published).
Run the following command to create a new project:
``bash`
npm create no-frameworkor
pnpm create no-framework
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