Rickzzyy / mern-project

0 stars 0 forks source link

Move to the separate file for example: "Configuration.js" #16

Open aspalvis opened 1 year ago

aspalvis commented 1 year ago

https://github.com/Rickzzyy/mern-project/blob/2d39a46147330909f5fa1492e859264f137aa9f6/server/index.js#L21C18-L21C18

aspalvis commented 1 year ago

Do the same with 'FILE STORAGE', 'ROUTES WITH FILES', 'MONGOOSE SETUP'

05-yuvraj-singh commented 1 year ago

i feel these configuration data must be added into a config.env and can be accessed anywhere in the project using the dotenv package (like process.env.) and if you feel thats what is required , do assign the issue to me