A premium Airbnb-style property listing platform built with Node.js, Express, MongoDB, and EJS.
- Browse property listings with beautiful card-based UI
- Create, edit, and delete listings
- Responsive design with modern aesthetics
- Search functionality
- Premium navigation and user interface
- Backend: Node.js, Express.js
- Database: MongoDB (MongoDB Atlas for production)
- Template Engine: EJS with ejs-mate
- Styling: Bootstrap 5, Custom CSS
- Fonts: Plus Jakarta Sans
-
Clone the repository:
git clone https://github.com/Shaurxya/WanderLust.git cd WanderLust -
Install dependencies:
npm install
-
Create a
.envfile in the root directory:MONGO_URL=mongodb://127.0.0.1:27017/wanderlust NODE_ENV=development -
Seed the database (optional):
npm run seed
-
Start the server:
npm start
-
Open your browser and navigate to
http://localhost:8080/listings
- A Vercel account connected to your GitHub
- A MongoDB Atlas account with a cluster set up
-
Set up MongoDB Atlas:
- Go to MongoDB Atlas
- Create a free cluster
- Get your connection string (looks like:
mongodb+srv://<username>:<password>@cluster0.xxxxx.mongodb.net/wanderlust?retryWrites=true&w=majority) - Make sure to replace
<username>and<password>with your actual credentials - Whitelist all IPs (0.0.0.0/0) in Network Access for Vercel
-
Deploy to Vercel:
- Go to Vercel Dashboard
- Click "Add New..." → "Project"
- Import your
WanderLustrepository - In Environment Variables, add:
- Name:
MONGO_URL - Value: Your MongoDB Atlas connection string
- Name:
- Click "Deploy"
-
Seed your production database (optional):
- After deployment, you can run the seed script with your production MONGO_URL:
MONGO_URL=<your-atlas-url> npm run seed
- The
MONGO_URLenvironment variable MUST be set in Vercel for the deployment to work - Local MongoDB (
mongodb://127.0.0.1:27017/wanderlust) will NOT work on Vercel - Vercel will automatically redeploy when you push to the main branch
- Check that you've added the
MONGO_URLenvironment variable in Vercel - Verify your MongoDB Atlas connection string is correct
- Ensure MongoDB Atlas allows connections from all IPs (0.0.0.0/0)
- Check Vercel deployment logs for specific error messages
- Make sure MongoDB is running locally
- Check that the port 8080 is not already in use
- Verify all dependencies are installed with
npm install
ISC