Currently we have the configuration of the project inside src/app.module.ts prepared with Mongoose database engine, to improve the structure, scalability and readability of the project would be nice to have this refactored and alseo remove unuseful files when starting up a nestjs project.
In order to get a simple environment variable by passing the variable name. We can do TypeScript type hinting by passing the type with a custom configuration object using an interface.
PROBLEM TO SOLVE AND DETAILS
Currently we have the configuration of the project inside
src/app.module.ts
prepared with Mongoose database engine, to improve the structure, scalability and readability of the project would be nice to have this refactored and alseo remove unuseful files when starting up a nestjs project.SOLUTION PROPOSAL
Refactor config module. Simplify the
src/app.module.ts
file. Remove unuseful testing files from nestjs. https://docs.nestjs.com/techniques/configurationCONDITIONS OF SATISFACTION