Pillbug23 / cs361_fitness_log

0 stars 0 forks source link

Hide sensitive information #1

Closed AndrewSadikov closed 3 hours ago

AndrewSadikov commented 4 hours ago

backend/database/db-connector.js

This file features database credentials There are a couple of options when it comes to hiding these; here is one:

The most common approach is to use a .env file to store environment variables. The file itself would be added to your gitignore to avoid secrets showing up in the repo. This is a popular choice because all major pipelines support environment variables. This means you can still deploy seamlessly once you configure your ci/cd.

Pillbug23 commented 3 hours ago

Created .env file in backend directory to hide school database credientials