Nest: Избавляемся от nestjs/passport

Чистим и упрощаем наш код. Избавляемся от множественных вхождений passport, заменяем неявное явным, убираем middleware.

Исходный код: https://github.com/amel-true/nest-openid-client-passport/tree/lesson4

#nest #nestjs #javascript

What is GEEK

Buddha Community

Nest: Избавляемся от nestjs/passport

Nest: Избавляемся от nestjs/passport

Чистим и упрощаем наш код. Избавляемся от множественных вхождений passport, заменяем неявное явным, убираем middleware.

Исходный код: https://github.com/amel-true/nest-openid-client-passport/tree/lesson4

#nest #nestjs #javascript

Nandu Singh

Nandu Singh

1628175900

How to enabled trailing slash in Nest.JS Fastify

Fastify uses find-my-way to handle routing. This option may be set to true to ignore trailing slashes in routes. This option applies to all route registrations for the resulting server instance.

Default: false

const fastify = require('fastify')({
  ignoreTrailingSlash: true
})

// registers both "/foo" and "/foo/"
fastify.get('/foo/', function (req, reply) {
  reply.send('foo')
})

// registers both "/bar" and "/bar/"
fastify.get('/bar', function (req, reply) {
  reply.send('bar')
})

Config in Nest.JS Application 

async function bootstrap() {  
  const app = await NestFactory.create<NestFastifyApplication>(
    AppModule,
    new FastifyAdapter({ ignoreTrailingSlash: true })

  );
}

#nestjs #nest #node #nestjs #fastify 

Eva  Murphy

Eva Murphy

1625812440

Loading Quiz with Questions - Query, Joins and Nested Relations in TypeORM 12

In this video, we are going to look at how we can work with TypeORM and use joins to load other relations.

The idea is to have an API that will take the quiz ID and return a JSON object containing the Quiz data along with the questions and options for that particular quiz.

Github code: https://my-lnk.com/r/2233233755

#typeorm #nest #nestjs #query #nested

What Can I Do In NestJS in 30 Minutes? | Nest Tutorial App

In this video we look at Nestjs. We create a full NestJS app in 30 minutes, including all the CRUD, Post, Put, Update and Delete HTTP verbs! Learn NestJS in this tutorial!

  • 0:00 Introduction
  • 01:38 Timer Starts Setup NestJS
  • 03:55 Nest CLI Generate resource posts
  • 06:06 TypeORM install and setup
  • 11:37 CRUD implementation
  • 19:19 Testing Out API

#nestjs #nest #node

Rodger Hirthe

Rodger Hirthe

1621819524

NestJS Authentication Passport JWT | LinkedIn Clone [8]

In this video we use NestJS to create a secure authentication system that has signup and login functionality. Bcrypt is used to hash and check passwords in our PostGreSQL database. The user is able to login with the help of Passport, generating a JWT if credentials are valid, which is required to reach guarded end points. RxJS is also utilised.

GitHub: https://github.com/Jon-Peppinck/linkedin-clone

#nestjs #nest #node #security