1.2.7 • Published 3 years ago

prodify-s v1.2.7

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

NestJS API Scaffolding (prodify-s)

This is a supurior package for production level Nestjs application generator, which is can be used as a starting point for any Backend application with NestJS.

Installation šŸ­

$ npm install -g prodify-s

Why another nestJS generator ā“

  1. This generates the API scaffolding with the error handler āš ļø, which is always a good idea.

  2. Only installs the bare bones šŸ’€ and "mostly" required dependencies whenever you try to start a new nestjs application.

Quick Start šŸƒā€ā™‚ļø

The quickest way to get started with nestjs is to utilize the executable prodify-s (OR @prodify-s) to generate an application as shown below:

Create (and start) the app in current folder:

$ nest start .
$ npm run start:dev

OR, create (and start) the app (in myNestApp folder):

$ sj-plz myNestApp OR prodify myNestApp
$ cd myNestApp
$ npm run start:dev

This will basically create this structure in your folder

.
ā”œā”€ā”€ dev.env
└── local.env
└── common
ā”œā”€ā”€ node_modules
ā”œā”€ā”€ nest-cli.json
ā”œā”€ā”€ package.json
└── tsconfig.json
└── tsconfig.build.js
└── .prettierrc
└── .eslintrc.js
└── .gitignore
└── test
    └── app.e2e-spec.ts
    └── jest-e2e.json
└── src
    └── common
        └── database
            └── database.config.ts
            └── database.module.ts
            └── database.providers.ts
            └── dbConfig.interface.ts
    └── constants
        └── index.ts
    └── users
        └── dto
        └── entities
        └── users.controller.spec.ts
        └── users.controller.ts
        └── users.service.ts
        └── users.module.ts
        └── users.service.spec.ts
    └── util
        └── db-queries.ts
        └── response.handler.ts
    └── app.controller.ts
    └── app.module.ts
    └── app.service.ts
    └── main.ts

This is how easy it is to get going.

What dependencies it installs ?

  • rxjs - nest reactive programming using observable
  • dotenv - for env variables
  • mysql2 - to create mysql db connection
  • nest (dev) - contains all neccessary import files of nest

Command Line Options

Actually NONE is required 😊 as of now, incase I continue this project OR I'll get requests then certainly this is not the end.

Author āœļø

Sudhakar Jha šŸ‡®šŸ‡³

License šŸŽ«

MIT

Contribute šŸ¤

You can fork this repo and send me a PR.