Scaffolds a production-ready NestJS 11 backend with JWT + OAuth2 authentication, Prisma ORM, and PostgreSQL/SQLite support. Current stable version 1.2.7. Includes a BNS utility CLI (@robyajo/bns-cli) for generating modules, switching databases, upgrading templates, and generating JWT secrets. Supports TypeScript out of the box. Differentiators: opinionated structure, automatic .env with random JWT secrets, upgrade mechanism with diff-based warnings for breaking changes.
npm install create-bns-apiNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Scaffold a NestJS project, run database migration, and start development server.
Always run in an empty directory or use --yes with caution. Check output before confirming.
Use --pg flag: npx create-bns-api my-project --pg
Always git commit before upgrade. Review changes with git diff.
Use --pg instead of --postgres.
Add .env to .gitignore. Do not commit secrets.
Run npm install inside the project directory.
Check DATABASE_URL in .env. For PostgreSQL, ensure service is running and credentials match.
Run npx prisma migrate dev to apply migrations.