nest-extra-schematics
v0.2.0
Published
Nest schematics that extend the default schematics
Readme
Description
nest cli is an awesome tool, yet i find myself writing the same codes a lot, thats why i made this project extending nest-schematic.
Installation
$ npm install --save-dev nest-extra-schematicsFeatures
Schematic
an schematic for creating more schematics, in this project or nest-schematic.
usage:
$ nest g -c nest-extra-schematics schematic schematicResource
extended from nest schematic, has database (mongodb, sqlite, postgres, mysql/mariadb) and ORM (mongoose, typeorm, drizzle) integration.
usage:
$ nest g -c nest-extra-schematics res notesUser
extended from resource, has some basic properties for user (username, email, first/last name, phone number, password), password hashing and a route for updating password.
usage:
$ nest g -c nest-extra-schematics u usersAuth
JWT auth (Passport) wired to the user resource. Two methods: jwt (password login) or code (a login code your own email/sms module delivers — it must provide CODE_SENDER with sendCode(to, code) and a CODE_STORE). Login identifies the user by email by default. Codes allow 3 attempts and expire after CODE_TTL_MINUTES (default 10).
usage:
$ nest g -c nest-extra-schematics authLicense
Nest is MIT licensed.
