This is a full-stack real estate application that allows users to create, update, and view property listings. It uses a combination of React, Redux, Tailwind CSS on the frontend, and Node.js, Express, and MongoDB on the backend.
- User authentication
- Create, update, and view property listings
- Image upload functionality with file validation
- Dark mode support
- Live chatting with realestate owner
- commenting on realestate
- Admin dashboard
- Demote and promote Admin
- and etc.
- React
- Redux & @reduxjs/toolkit
- React Router
- Tailwind CSS
- Node.js
- Express.js
- MongoDB
- Mongoose
- multer
Make sure you have the following installed on your machine:
- Node.js
- npm or yarn
- MongoDB
-
Clone the repository:
git clone https://github.com/kika1s1/Real-State.git cd Real-State
-
Navigate to the backend directory and install dependencies:
npm install
-
Create a
.env
file in thebackend
directory with the following content:MONGO=your_mongodb_connection_string JWT_SECRET=your_jwt_secret
-
Navigate to the frontend directory and install dependencies:
cd client npm install
-
to start both at the same time using concurrently:
cd .. npm run dev
-
Open your browser and navigate to
http://localhost:5173
to view the application. -
Register a new account or log in with existing credentials.
-
Create, update, and view property listings.
POST /api/users/register
: Register a new userPOST /api/users/login
: Login a user
POST /api/listings/create
: Create a new listingGET /api/listings/get/:id
: Get a specific listingPUT /api/listings/update/:id
: Update a listingDELETE /api/listings/delete/:id
: Delete a listingPOST /api/listings/upload
: Upload listing images
This project is licensed under the MIT License.