Welcome to HabitatX! This is a monorepo managing the frontend, backend API, and Stellar payment services for the HabitatX platform.
HabitatX is a rental marketplace connecting landlords and tenants directly — removing middlemen by enabling property listings, transparent reviews, and seamless rent payments.
We use pnpm workspaces for dependency management and TurboRepo for high-performance build orchestration.
- Monorepo Manager: pnpm workspaces + TurboRepo
- Frontend: React + TailwindCSS
- Backend: Node.js, Express, TypeScript
- Payments: Stellar SDK
- Language: TypeScript (Strict Mode)
Before you start, ensure you have the following installed:
- Node.js (v18 or higher recommended)
- pnpm (We use this instead of npm/yarn)
corepack enable
# OR
npm install -g pnpmFollow these steps to get the entire platform running locally.
git clone <your-repo-url>
cd HabitatX
# Install all dependencies for all apps and packages
pnpm installThis command starts all applications (Web, API, and Stellar Service) in parallel.
pnpm devYou will see output from all services in your terminal. They are available at:
- Web App: http://localhost:3000
- Backend API: http://localhost:3001
- Stellar Service: http://localhost:3002
HabitatX/
├── apps/
│ ├── web/ # React Frontend (Tenant & Landlord Interface)
│ ├── api/ # Core Backend API (Express + Node.js)
│ └── stellar-service/ # Isolated Service for Payments
│
├── packages/
│ ├── types/ # Shared TypeScript interfaces & DTOs
│ ├── config/ # Shared configurations (TSConfig, ESLint)
│ └── ui/ # Shared React UI components (Tailwind)
│
└── turbo.json # Build pipeline configuration
Run these from the root folder:
| Command | Description |
|---|---|
pnpm dev |
Starts all apps in development mode. |
pnpm build |
Builds all apps and packages for production. |
pnpm lint |
Runs ESLint across the entire monorepo. |
pnpm test |
Runs tests for all packages (when added). |
pnpm clean |
Clears Turbo cache and artifacts. |
Since we use a monorepo, you must specify where to install a package.
To add a library to the Frontend (apps/web):
cd apps/web
pnpm add framer-motionTo add a library to the Backend (apps/api):
cd apps/api
pnpm add mongooseTo use a shared package (example: shared types):
cd apps/api
pnpm add "@HabitatX/types@workspace:*" -DHabitatX is designed around two primary user roles:
- Browse and discover properties
- View building and landlord reviews
- Apply directly without agents
- Renew rent through the platform
- Advertise houses, shops, lands, and buildings
- Manage listings and tenants
- Receive secure payments
- Build credibility through reviews
HabitatX introduces a reputation layer where tenants can leave honest reviews about properties and landlords, helping create a more transparent and trustworthy rental ecosystem.
Rent payments and renewals are powered by the Stellar ecosystem, enabling efficient and secure transactions.
"Module not found" or Type Errors
If you just pulled fresh code or switched branches:
pnpm install
# If issues persist, force a clean install
rm -rf node_modules
pnpm installGit is ignoring files I want to commit
We strictly ignore node_modules and build artifacts (dist, build caches).
- Do not force commit
node_modules. - If your
node_modulesare showing up in Git:
git rm -r --cached .
git add .
git commit -m "fix: clear cached node_modules"HabitatX is open-source and community-driven — contributions are welcome from developers of all levels.
- Always run
pnpm lintbefore pushing. - Keep shared logic (types, configs, UI) inside
packages/. - Do not edit
apps/*/node_modulesmanually. - Keep PRs focused and clearly described.
Whether you are fixing bugs, improving UI, or adding core features — your contribution matters.
HabitatX aims to become a trusted, agent-free rental marketplace where tenants and landlords connect directly, backed by community reviews and seamless digital payments.
Built with ❤️ by the community.