Skip to content

StarterHub/nest-starter

Repository files navigation

nest-starter

Installation

$ pnpm i

Running the app

# development
$ pnpm start

# watch mode
$ pnpm start:dev

# production mode
$ pnpm start:prod

Endpoint

Swagger

GET: http://127.0.0.1:3001/api

Http

POST: http://127.0.0.1:3001/api/auth/login

GET: http://127.0.0.1:3001/api/auth/profile

GET: http://127.0.0.1:3001/api/health/http

GET: http://127.0.0.1:3001/api/health/disk

GET: http://127.0.0.1:3001/api/health/memory

GraphQL

http://127.0.0.1:3001/graphql

{
  recipe(id: "1") {
    id,
    title,
  }
}

WebSocket

ws: ws://127.0.0.1:3001/ws

socket-io: http://127.0.0.1:3001/ws

Test

# unit tests
$ pnpm test

# e2e tests
$ pnpm test:e2e

# test coverage
$ pnpm test:cov

Known issues

  1. In @WebSocketGateway, I18nContext.current() returns undefined.
  2. ERROR [WsExceptionsHandler] Cannot read properties of undefined (reading 'logIn')