About 20,300,000 results
Open links in new tab
  1. javascript - NestJS - How to use .env variables in main app module …

    Aug 6, 2020 · I am working on my first NestJS application, which was working fine with hardcoded database connecting string in app.module.ts. But then as per our requirements, I had to pick …

  2. How to protect/require Authentication to access the NestJS …

    49 Securing access to your Swagger with HTTP Basic Auth using NestJS with Express First run npm i express-basic-auth then add the following to your main.{ts,js}:

  3. javascript - How to use nestjs Logging service - Stack Overflow

    Oct 4, 2018 · I am trying to show a sample custom logger implementation and how it can be injected to the Nestjs framework. I understand that Nestjs inherently uses pino logger. This is …

  4. NestJS setup TypeOrm connection with .env and @nestjs/config

    Aug 31, 2020 · I'm trying to find the most legal way to set up NestJS database using .env file. That is I want to use @nestjs/config package for importing .env variables and use them in the …

  5. Why do I keep getting "[eslint] Delete `CR` [prettier/prettier]"?

    I have the same issue using VS Code for a NestJS + Mongoose server project. The same solution mentioned in several answers above, with a twist: Put it in the eslint.config.mjs` (extension can …

  6. typeorm - NestJS - [TypeOrmModule] Unable to connect to the …

    Jun 30, 2020 · NestJS - [TypeOrmModule] Unable to connect to the database. Retrying ER_PARSE_ERROR Asked 5 years, 5 months ago Modified 9 months ago Viewed 117k times

  7. Best practice to use config service in NestJS Module

    Nov 22, 2018 · However, NestJS Docs - Configuration Namespaces as well as NestJS Authentication and Authorization Course provide an alternative method of solving this issue.

  8. Validate nested objects using class validator and nestjs

    Dec 14, 2018 · I'm trying to validate nested objects using class-validator and NestJS. I've already tried following this thread by using the @Type decorator from class-transform and didn't have …

  9. Enable Cors in NestJs - Stack Overflow

    Oct 22, 2019 · Enable Cors in NestJs Asked 6 years, 1 month ago Modified 3 years, 6 months ago Viewed 25k times

  10. NestJS Create Reusable/Publishable Library - Stack Overflow

    Jun 11, 2020 · NestJS Create Reusable/Publishable Library Asked 5 years, 5 months ago Modified 2 years, 9 months ago Viewed 28k times