kidamoro / backend

MIT License
0 stars 0 forks source link

As a project I would like to have the only the necessary files and refactor before sql migration #9

Open enriqueMontano opened 2 years ago

enriqueMontano commented 2 years ago

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/configuration

CONDITIONS OF SATISFACTION

Dayanro commented 2 years ago

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.