Installation & Setup
1️⃣ Install Node.js and npm
Ensure you have Node.js and npm installed. If not, install it from: 👉 Download Node.js
Check installation:
node -v
npm -v2️⃣ Install PostgreSQL Database
Download and install PostgreSQL: 👉 Download PostgreSQL
After installation, create a new database:
psql -U postgres
CREATE DATABASE real-estate-backend;3️⃣ Clone the Repository
git clone https://github.com/AHMAD-JX/Hozn-RealEstate-Fullstack.git
cd Hozn-RealEstate-Fullstack2️⃣ Install dependencies:
# Install frontend dependencies
cd Hozn-RealEstate
npm install
# Install backend dependencies
cd ../real-estate-backend
npm install3️⃣ Setup environment variables:
Frontend (.env.local):
NEXT_PUBLIC_API_URL=http://localhost:5000/apiBackend (.env):
PORT=5000
DATABASE_URL=postgres://user:password@localhost:5432/realestate
JWT_SECRET=your_jwt_secret4️⃣ Run the project:
# 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
Source captured: 2026-10-11