git clone https://github.com/nadeem-R17/EcoCart.git
npm i
create a .env file in backend folder and add your MongoDB connection credentials
MONGODB_URI=mongodb://localhost:27017/your-database-name
also add a secret key in your .env file (anything you like)
SECRET_KEY=your_secrect_key
for backend: go to backend folder in your terminal and run the command:
node index.js
for frontend: open a separate terminal, go frontend folder directory and run the following command:
npm run dev