open-index/open-npm huggingface dataset:
npm package: @laborit-dev/laborit-ds
Description: Laborit Web Design System - Styled Components based
Author: Laborit
Latest version: 0.0.6-beta

_![cover](laborit.ds-cover.svg)_

## Requirements

- nvm (v1.1.7) ([install details](https://github.com/nvm-sh/nvm#installation-and-update))
- node (v12.16.1) ([install details](https://github.com/nvm-sh/nvm#nvmrc))
- npm (v6.13.4)

## How to use

First install the library

```
yarn add @laborit-dev/laborit-ds
```

Insert our style reset in your project. Copy the file or the contents of `https://gitlab.com/laborit/laborit-ds/-/blob/develop/.storybook/styles.css`

At the beginning of your project:

```js
import 'styles.css'
```

Use the library according to the documentation:

```js
import { Button } from `@laborit-dev/laborit-ds`
```

```js
<Button {...props}>...</Button>
```

## Testing

### Using jest with enzyme (see examples on `./src/client/**/*.spec.js`)

```bash
npm run test
```

or

```bash
yarn test
```

### Coverage

```bash
yarn test:coverage
```

## Code quality, patterns

### Using Eslint and Prettier

```bash
npm run lint

npm run prettier
```

or

```bash
yarn lint

yarn prettier
```
npm package: @laborit-dev/nestjs-app-structure
Description: @laborit-dev/nestjs-app-structure
Author: Rafael Fidelis
Latest version: 0.0.3

# Laborit: Nest JS App Structure

<p align="center">
  <a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo_text.svg" width="320" alt="Nest Logo" /></a>
</p>

---

## Master (Production):

[![pipeline status](https://gitlab.com/flaborit/nestjs-app-structure/badges/master/pipeline.svg)](https://gitlab.com/flaborit/nestjs-app-structure/commits/master)

## Develop (Staging):

[![pipeline status](https://gitlab.com/flaborit/nestjs-app-structure/badges/develop/pipeline.svg)](https://gitlab.com/flaborit/nestjs-app-structure/commits/develop)

# Test Coverage

## Master (Production):

[![coverage report](https://gitlab.com/flaborit/nestjs-app-structure/badges/master/coverage.svg)](https://gitlab.com/flaborit/nestjs-app-structure/commits/master)

## Develop (Staging):

[![coverage report](https://gitlab.com/flaborit/nestjs-app-structure/badges/develop/coverage.svg)](https://gitlab.com/flaborit/nestjs-app-structure/commits/develop)

---

## Sobre

Biblioteca com estrutura base das aplicações NestJS desenvolvidas pela Laborit.

---

## Requirements

- [Node 12](http://nodejs.org/)

---

## Stack

- [Nest.js 7.4.1](https://docs.nestjs.com/)

---

## Setup do ambiente de desenvolvimento

O jeito mais simples e tranquilo de instalar o node atualmente é atraves do [`nvm`](https://github.com/nvm-sh/nvm)

```sh
$ git clone git@gitlab.com:flaborit/nestjs-app-structure.git
$ cd nestjs-app-structure/
$ nvm install
$ nvm use
$ node -v  # v12.17.0
$ npm install
```

---

## Suíte de Testes

Utilizamos as bibliotecas padrões do Nest para testar a aplicação, isso inclui: `Jest`, você pode obter mais informações no Guia: ["Testing NestJS Applications"](https://docs.nestjs.com/fundamentals/testing)

```sh
# Unit Tests
$ npm run test

# unit test + test coverage
$ npm run test:coverage
```

#### Continuous Integration Tests

```sh
# Unit + integration (e2e) tests + cove coverage (NODE_ENV=test)
$ npm run test:ci

# Unit tests + coverage (NODE_ENV=test)
$ npm run test:ci:coverage
```

---

## Code Coverage

Utilizamos o [`Instanbul`](https://istanbul.js.org/) para gerar instrumentar e gerar o relatório de Code Coverage quando os testes são executados.

Quando o comando `npm run test:coverage` é executado os metadados + relatório HTML de coverage são criados na pasta `coverage/`, para visualizar basta executar:

```sh
$ xdg-open coverage/index.html # Linux
$ open coverage/index.html # Mac
```

---

## F.A.Q & Dicas

### Code Coverage Report

- https://flaborit.gitlab.io/nestjs-app-structure/569358230bfc9ad56a58a2ee/coverage/ (Unit Test Coverage)

### Demo API

- https://nestjs-livestreaming-test-stg.herokuapp.com/api-docs/ (Staging)

- https://nestjs-livestreaming-test.herokuapp.com/api-docs/ (Production)

---

## Referências & links úteis

- https://gitlab.com/flaborit/nestjs-app-structure

- https://docs.nestjs.com/

- https://docs.nestjs.com/fundamentals/testing

- https://jestjs.io/

- https://github.com/nestjs/nest

- https://github.com/typeorm/typeorm

* https://github.com/nvm-sh/nvm