knvee-ts
v2.0.7
Published
DEPRECATED: Use @knvee-ts/cli instead. This package now wraps @knvee-ts/cli for backward compatibility.
Downloads
8
Maintainers
Readme
knvee-ts
CLI tool to scaffold NestJS applications with Clean Architecture, multiple ORMs, and authentication.
Features
- ORM Options: Drizzle, TypeORM, Prisma, Mongoose
- Database Options: PostgreSQL, MySQL, SQLite, MongoDB
- Authentication: JWT + Local Strategy, OAuth2 (Google, GitHub)
- Architecture: Clean Architecture with use-cases pattern
- RBAC: Role-based access control with guards and decorators
- Docker: Dev and production Dockerfile + docker-compose
Installation
npx knvee-ts my-appOr install globally:
npm install -g knvee-ts
knvee-ts my-appUsage
knvee-ts <project-name> [options]
Options:
-V, --version output the version number
-h, --help display help for commandInteractive prompts will guide you through:
- Select ORM (Drizzle/TypeORM/Prisma/Mongoose)
- Select Database (PostgreSQL/MySQL/SQLite/MongoDB)
- Enable OAuth providers (Google/GitHub)
Generated Project Structure
my-app/
├── src/
│ ├── common/ # Guards, decorators, filters
│ ├── config/ # Configuration schema
│ ├── database/ # ORM setup, schema/entities
│ ├── health/ # Health check endpoint
│ └── modules/
│ ├── auth/ # Authentication (JWT, strategies, use-cases)
│ └── users/ # User management
├── docker/ # Dockerfile.dev, Dockerfile.prod
├── docker-compose.yml
└── .env.exampleDevelopment
# Install dependencies
npm install
# Build
npm run build
# Link locally for testing
npm linkLicense
MIT
