This is a full-stack web application built with React, Node.js, Express, and MongoDB. It allows users to view and explore real estate property listings and get personalized recommendations.
- Property Listing: View available properties with details such as location, size, and price.
- Property Details: Detailed view of individual properties.
- User Authentication: Login and sign-up functionality.
- Recommendation System: Suggests similar properties based on price and location.
- Responsive Design: Works on desktop and mobile devices.
- Frontend: Reactjs + Vite, Tailwind CSS
- Backend: Node.js, Express, MongoDB
- Deployment: Vercel
- Node.js installed on your machine
- MongoDB instance or MongoDB Atlas account
-
Clone the repository:
git clone https://github.com/Amanbig/residential_properties.git cd residential_properties
-
Install dependencies for both frontend and backend:
npm install
-
Create a
.env
file in the root directory and add the following:MONGO_URI=your_mongo_db_uri PORT=5000 JWT_SECRET=your_jwt_secret
-
Start the backend server:
npm run start
-
Open your browser and navigate to
http://localhost:5000
to view the application.
-
Install the Vercel CLI (if you haven't already):
npm install -g vercel
-
Initialize your project with Vercel:
vercel
-
Deploy the application:
vercel --prod
Ensure your project has a vercel.json
file with the following configuration:
{
"version": 2,
"builds": [
{
"src": "index.js",
"use": "@vercel/node"
}
],
"routes": [
{
"src": "/api/(.*)",
"dest": "/index.js"
},
{
"src": "/(.*)",
"dest": "/index.js"
}
]
}