CinePik / catalog

Node.js microservice for providing the tv catalog
MIT License
1 stars 0 forks source link

Add config functionality and connection to DB #2

Closed lzukanovic closed 11 months ago

lzukanovic commented 11 months ago

Use NestJS's built-in configuration libraries to inject environment variables into the runtime. Currently there are two different .env files (.env.development and .env.production) which change depending on the given NODE_ENV environment variable. Then the correct environment variables are applied to both NestJS and Prisma.

Later it would be better to also define the variables directly in the running environment (docker, k8s ConfigMap and Secret).

Prisma ORM has also been configured.