Skip to content

Simple nest.js application to understand nest authentication.

Notifications You must be signed in to change notification settings

K-A-I-L-A-S-H/auth-extension

Repository files navigation

Nest Logo

Description

Simple Nest application to understand a way to authenticate and authorise the application. This explains how guards and decorators can be used to authenticate private routes and let few routes be accessible publicly.

Installation

$ pnpm install

Running the app

# development
$ pnpm run start

# watch mode
$ pnpm run start:dev

# production mode
$ pnpm run start:prod

Using prisma

# Push DB schema
$ npx prisma db push

# Create DB migration
$ pnpm run prisma:migrate:dev

# Run DB migration on prod server
$ pnpm run prisma:migrate:prod

# Generate prisma client
$ pnpm run prisma:generate

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

About

Simple nest.js application to understand nest authentication.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published