Skip to content

NedcloarBR/nestjs-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

82 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Description

Nest framework TypeScript custom starter boilerplate repository.

Changes

Installation

# install packages
$ yarn install

# initialize prisma client and sync with database
$ yarn prisma migrate dev

Running the app

# development
$ yarn run start

# watch mode
$ yarn run start:dev

# production mode
$ yarn run start:prod

Test

# unit tests
$ yarn run test

# e2e tests
$ yarn run test:e2e

# test coverage
$ yarn run test:coverage

Using Docker

# Start container
$ docker compose up -d

# View logs
$ docker compose logs -f

Viewing Metrics

  • Swagger: http://localhost:9000/docs
  • Grafana: http://localhost:3000

Warning

PORTS THAT CANNOT BE USED IN THIS PROJECT

Metrics API(src/lib/metrics.ts)
8081 -> OtelSDK

Metrics otel-collector(docker-compose.metrics.yml)
1888 -> pprof extension
8888 -> Prometheus metrics exposed by the collector
8889 -> Prometheus exporter metrics
13133 -> health_check extension
4317 -> OTLP gRPC receiver
4318 -> OTLP HTTP receiver
55679 -> zpages extension

Metrics tempo(docker-compose.metrics.yml)
14268 -> jaeger ingest
3200 -> tempo
4317 -> otlp grpc
4318 -> otlp http
9411 -> zipkin

Metrics loki(docker-compose.metrics.yml)
3100 -> loki

Metrics prometheus(docker-compose.metrics.yml)
9090 -> prometheus

Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.

Stay in touch

License

Nest is MIT licensed.