This guide will help you set up and run TourEase locally without errors.
git clone https://github.com/Suhani1234-5/TourEase.git cd TourEase
npm install
For frontend (if using Vite/React in client/ folder):
cd client npm install cd ..
npm install -g nodemon npm install -g vite
Create a .env file in the root folder:
MONGODB_URI=your-mongodb-uri PORT=3000
npm start
Or with nodemon:
nodemon app.js
cd client npm run dev
- MongoDB connection error: Check
MONGODB_URIand ensure MongoDB is running. - Port already in use: Change
PORTin.envor stop other processes. - Dependencies missing: Run
npm installin backend and frontend. - Nodemon not found: Install globally
npm install -g nodemon.