This PR addresses the security concern of hardcoding MongoDB credentials directly into the codebase. Storing credentials in the code can expose sensitive information, especially when working in a shared or open-source repository.
The .env file has been introduced to securely store MongoDB credentials, which are then fetched within the application. Additionally, the test cases have been modified accordingly to ensure that they work seamlessly with this new environment-based credential setup.
What problem does this PR solve?
This PR addresses the security concern of hardcoding MongoDB credentials directly into the codebase. Storing credentials in the code can expose sensitive information, especially when working in a shared or open-source repository.
The .env file has been introduced to securely store MongoDB credentials, which are then fetched within the application. Additionally, the test cases have been modified accordingly to ensure that they work seamlessly with this new environment-based credential setup.
Close #2865