@nestdevx/user
v1.0.2
Published
User module for multi-tenant NestJS applications.
Downloads
9
Maintainers
Readme
@nestdevx/user
User module for multi-tenant NestJS applications. Handles user management
Features
- Multi-tenant user management
- Registration, assign-roles etc..
- Integration with @nestdevx/auth and @nestdevx/role
- DTOs, entities, and services for user operations
Installation
npm install @nestdevx/user
# or
yarn add @nestdevx/user
# or
pnpm add @nestdevx/userUsage
1. Import the Module
import { UserModule } from '@nestdevx/user';
@Module({
imports: [UserModule.register()],
})
export class AppModule {}2. Use the UserService
import { UserService } from '@nestdevx/user';
@Injectable()
export class SomeService {
constructor(private readonly userService: UserService) {}
async createUser(data: CreateUserDto) {
return this.userService.create(data);
}
}License
MIT
