Skip to content

Latest commit

 

History

History
66 lines (45 loc) · 1.69 KB

README.md

File metadata and controls

66 lines (45 loc) · 1.69 KB

Installation

$ pnpm install

Running the app

# development
$ pnpm run start

# watch mode
$ pnpm run start:dev

# production mode
$ pnpm run start:prod

Test

# unit tests
$ pnpm run test

# e2e tests
$ pnpm run test:e2e

# test coverage
$ pnpm run test:cov

Commit Message Standards

Commitizen friendly We are using the following conventions to identify what the commit is doing:

  • FEAT: A new feature.
  • FIX: A bug fix.
  • DOCS: Changes to documentation
  • STYLE: Formatting, missing semi colons, etc; no code change.
  • REFACTOR: Refactor: refactoring production code.
  • TEST: Adding tests, refactoring test; no production code change
  • CHORE: updating build tasks, package manager configs, etc; no production code change.
  • BUILD: Changes to build config, a new release.

Stay in touch

Authentication

We'll start with the first requirement: authenticating a user. We'll then extend that by issuing a JWT. Finally, we'll create a protected route that checks for a valid JWT on the request.

Creating an authentication module

We'll start by generating an AuthModule and in it, an AuthService and an AuthController. We'll use the AuthService to implement the authentication logic, and the AuthController to expose the authentication endpoints.

Commands

  • $ nest g module auth $ nest g controller auth $ nest g service auth