Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rjlopezdev/nestjs-lib-starter

:package: :cat2: A Starter for Nestjs Library Development
https://github.com/rjlopezdev/nestjs-lib-starter

library nestjs schematics template

Last synced: about 2 months ago
JSON representation

:package: :cat2: A Starter for Nestjs Library Development

Awesome Lists containing this project

README

        

> :bulb: See [CONFIGURE_TEMPLATE.md](https://gist.github.com/rjlopezdev/f2c2ab0db522aad87c98fb1dc2e4ef14) to configure this template. Then, remove the file and this advise.


Nest Library Starter

Nest Library Starter


Minimal library description.





















Contributing
·
License

> :books: [See complete documentation](https://rjlopezdev.github.io/nestjs-lib-starter/)

An exhaustive description of the library.

# :notebook: Summary

* [Installation](#installation)
* [Setup](#setup)
* [Usage](#usage)
* [LibraryNameService](#librarynameservice)
* [Schematics](#schematics)

# :package: Installation

* :cat2: Using Nest CLI:
```
nest add nestjs-library-starter
```

* :package: Using Package Manager:
```
npm install --save nestjs-library-starter
```

# :wrench: Setup

Explain your library setup.

```typescript
import { Module } from '@nestjs/common';
import { LibraryNameModule, LibraryNameConfig } from 'nestjs-library-starter';

const CONFIG: LibraryNameConfig = {
value: 'Awesome!'
}

@Module({
imports: [
...
LibraryNameModule.register(CONFIG)
],
controllers: [ ... ],
providers: [ ... ],
})
export class AppModule {}
```

## :control_knobs: Config

| Value | Type | Default | Description |
| --- | --- | --- | --- |
| value | __string__ | `` | A powerful value |

# :books: Usage

Explain your library usage.

## LibraryNameService

A service with an awesome & helpul functionallity.

| Method | Signature | Description |
| --- | --- | --- |
printConfig | __config__: `LibraryNameConfig` | Prints a provided _configuration_ |

# :art: Schematics

Invoke Schematics using:

```
nest g [params] --collection nestjs-library-starter
```

## demo

> Prints a cute cat.

| Parameter | Type | Default | Description |
| --- | --- | --- | --- |
| __catType__ | _string_ | Default | Type of cat to print.