Hozn - Real Estate is a Full-Stack real estate website built with React, Next.js, TypeScript, and a Node.js (Express) backend. The platform allows users to browse, list, and manage properties seamlessly.
-
π₯ Modern UI/UX with smooth animations
-
π Property listing & management
-
π **BUY & Sell Property listing **
-
π User authentication (Signup/Login)
-
π Admin Dashboard for managing users & listings
-
π‘ Backend API built with Express & Sequelize
-
π¨ Fully Responsive on all devices
-
Authentication & Authorization (JWT-based login/signup)
-
Profile Management (Edit user details)
-
Real Estate Listings (Add, update, delete properties)
-
Buying & Selling API
-
Database Management with PostgreSQL & Sequelize
- React.js (Framework: Next.js)
- TypeScript
- Tailwind CSS & CSS (for styling)
- SCSS
- Framer Motion (for animations)
- Three.js
- Axios (for API calls)
- Node.js (Runtime)
- Express.js (Framework)
- Sequelize (ORM for PostgreSQL/MySQL)
- JWT (JSON Web Token) (for authentication)
- bcrypt.js (for password hashing)
- Multer (for handling file uploads)
Hozn-RealEstate-Fullstack/Hozn-RealEstate
βββ Hozn-RealEstate/ # React + Next.js frontend
β βββ .next/
β βββ node_modules/
β βββ public/
β βββ src/
| βββ app/
β βββ components/
β βββ data/
| βββ hooks/
β βββ layouts/
β βββ models/
β βββ redux/
β βββ styles/
β βββ types/
β βββ utils/
β
βββ real-estate-backend/ # Node.js Express.js backend
β βββ config/
β βββ migrations/
β βββ models/
β βββ node_modules/
β βββ seeders/
β βββ src/
| βββ config/
β βββ controllers/
β βββ middleware/
| βββ models/
β βββ routes/
β βββ models/
β βββ app.ts
β βββ custom.d.ts
β βββ server.ts
β
βββ README.md
Ensure you have Node.js and npm installed. If not, install it from: π Download Node.js
Check installation:
node -v
npm -vDownload and install PostgreSQL: π Download PostgreSQL
After installation, create a new database:
psql -U postgres
CREATE DATABASE real-estate-backend;git clone https://github.com/AHMAD-JX/Hozn-RealEstate-Fullstack.git
cd Hozn-RealEstate-Fullstack# Install frontend dependencies
cd Hozn-RealEstate
npm install
# Install backend dependencies
cd ../real-estate-backend
npm installFrontend (.env.local):
NEXT_PUBLIC_API_URL=http://localhost:5000/api
Backend (.env):
PORT=5000
DATABASE_URL=postgres://user:password@localhost:5432/realestate
JWT_SECRET=your_jwt_secret
# Start backend server
cd real-estate-backend
npm run dev
# Start frontend
cd ../hozn-frontend
npx ts-node src/server.ts
or
npm run dev
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/signup | User Signup |
| POST | /api/login | User Login |
| GET | /api/profile | Get User Profile |
| PUT | /api/profile/edit | Edit User Profile |
| POST | /api/property/add | Add New Property |
| GET | /api/property/list | List Properties |
| POST | /api/property/buy | Buy Property |
| DELETE | /api/property/sell | Sell Property |
curl -X POST "http://localhost:5000/api/properties" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_TOKEN" \
-d '{"title":"Luxury Villa", "price":250000, "location":"Cairo", "description":"Spacious 3-bedroom villa"}'
| Method | Endpoint | Description |
|---|---|---|
| POST | /signup | Register a new user |
| POST | /login | Authenticate user |
| Method | Endpoint | Description |
|---|---|---|
| GET | /profile | Fetch user profile |
| PUT | /profile | Update user profile |
| Method | Endpoint | Description |
|---|---|---|
| GET | /properties | Fetch all properties |
| POST | /properties | Add a new property |
| PUT | /properties/:id | Update property details |
| DELETE | /properties/:id | Delete a property |
fetch('http://localhost:5000/api/profile', {
method: 'PUT',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer YOUR_TOKEN`
},
body: JSON.stringify({
firstName: "John",
lastName: "Doe",
phoneNumber: "123456789",
about: "Real estate expert."
})
})
.then(res => res.json())
.then(data => console.log(data))
.catch(err => console.error(err));Feel free to fork the repository and create a pull request! π
This project is licensed under the MIT License.
π HOZN - Real Estate | Built with β€οΈ by AHMAD-JX


