MinaEzz / Qader-MERN-stack-project-

0 stars 0 forks source link

Secure Handling of Sensitive Data in config.env #1

Open AaronGulman opened 5 months ago

AaronGulman commented 5 months ago

Hi,

I have successfully connected to your database and received the message: "Welcome to your server at port: 5050". I could easuky take the next step and write a quick CRUD API to easily create, read, update, and delete data from your website.

Please ensure that you do not commit your config.env file directly to version control, as it contains sensitive data. While I won't mention your MongoDB password here, I can see it in the file.

Instead, consider documenting the creation of the [config.env] file in the README or use placeholders for sensitive information such as your password and login credentials.

This may not seem critical now, but it's a good practice to follow, especially for larger future projects.

MinaEzz commented 5 months ago

thank you @AaronGulman ❤ i am about to delete this database i just use it for testing

AaronGulman commented 5 months ago

Sure , haha okay got it ! Good luck and keep up the great work !