Coder Social home page Coder Social logo

catsmiaow / nestjs-project-structure Goto Github PK

View Code? Open in Web Editor NEW
1.0K 1.0K 220.0 5.44 MB

Node.js framework NestJS project structure

License: MIT License

JavaScript 0.72% HTML 0.34% TypeScript 98.95%
nest nestjs node nodejs project-structure typeorm typescript

nestjs-project-structure's Issues

envFilePath in ConfigModule

Thanks for sharing this structure. This is the best nestjs boilerplate that I've ever used!
I have 1 question though, is it okay to drop envFilePath in ConfigModule.forRoot({ ... }) ?
Cause I can't access to env variant without declaring envFilePath

ConfigModule.forRoot({
      isGlobal: true,
      envFilePath: process.env.NODE_ENV === 'dev' ? '.env.dev' : '.env.test',    // if not, can't access to env
      load: [configuration]
    }),

using jest without -i in this project create issue

Me too using multiple files for test cases with jest but without -i parameter. Because -i as per jest documentation is discouraged due to in-efficient in case we have too many files which will be executed in sequence only if being used with -i parameter with jest.

is there any work-around for that?

`Tables not found in selected database` while running `npm run entity`

$ npm run entity                                                                  15:08:59

> [email protected] entity ~/node-nestjs-structure
> node bin/entity

✔ Please enter a database name. … dbname1
✔ Choose whether to proceed with the build. … yes
[email protected]
[3:09:58 PM] Starting creation of model classes.
Tables not found in selected database. Skipping creation of typeorm model.
Error occurred in typeorm-model-generator.
[email protected]  [email protected]
If you think this is a bug please open an issue including this log on https://github.com/Kononnable/typeorm-model-generator/issues
[3:09:58 PM] Typeorm model classes created.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.