maryamaljanabi / bestbags-nodejs-ecommerce

A responsive ecommerce website using Node js, Express js, and MongoDB
318 stars 206 forks source link

Mongodb connect issue #36

Closed arjundarkweb closed 4 months ago

arjundarkweb commented 2 years ago

Can you please provide a bit brief on how to create .env file and connect mongo db.. if there is any sample.

Dheeraj-08 commented 1 year ago

If you go through the steps for installation, you will find all the variables there that you need to add in .env file. Create .env file at root of your application.

sreenathkumar commented 1 year ago

@arjundarkweb look

1. Create .env inside the root directory:

image

2. In the .env file add the credentials:

image

maryamaljanabi commented 4 months ago

Thanks to everyone who commented. The steps for how to run the project are in the readme file in the Run section. Please take a look at that. I'm closing the thread.