@urbansolv/create-nestjs-app
v1.2.9
Published
CLI generator for Urbansolv NestJS boilerplate with RBAC and Prisma
Maintainers
Readme
@urbansolv/create-nestjs-app
Official CLI tool to scaffold Urbansolv NestJS applications with built-in RBAC, Prisma ORM, and best practices.
Features
✅ Complete NestJS boilerplate following Urbansolv standards ✅ Role-Based Access Control (RBAC) pre-configured ✅ Prisma ORM with PostgreSQL ✅ JWT Authentication ✅ Auto-generated Swagger documentation ✅ Production-ready structure ✅ Comprehensive seed data ✅ Testing setup included
Quick Start
# Using npx (recommended)
npx @urbansolv/create-nestjs-app my-app
# Using npm
npm init @urbansolv/nestjs-app my-app
# Using yarn
yarn create @urbansolv/nestjs-app my-appUsage
create-urbansolv-app [project-name] [options]
Options:
-p, --package-manager <manager> Package manager to use (npm, yarn, pnpm)
-d, --database <name> Database name
--skip-install Skip package installation
-h, --help Display help
-V, --version Display versionExamples
# Create app with default settings
npx @urbansolv/create-nestjs-app my-awesome-app
# Create app with yarn and custom database
npx @urbansolv/create-nestjs-app my-app -p yarn -d my_database
# Create app without installing dependencies
npx @urbansolv/create-nestjs-app my-app --skip-installAfter Installation
cd my-app
# Copy environment variables
cp .env.example .env
# Edit .env with your database credentials
# Run migrations
npm run prisma:migrate
# Seed database
npm run prisma:seed
# Start development server
npm run start:devDefault Credentials
After seeding:
Admin:
- Email: [email protected]
- Password: password123
Member:
- Email: [email protected]
- Password: password123
Documentation
For full documentation, visit: Urbansolv Documentation
Support
- Issues: https://github.com/MspUrbansolv/package-npm-create_nestjs_app/issues
- Email: [email protected]
License
MIT © Urbansolv
### 22.5 LICENSE File
**urbansolv-nestjs-cli/LICENSE**MIT License
Copyright (c) 2024 Urbansolv
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
