The backend for MyHomeFinder, a real estate listing platform that connects property seekers with verified listings. Built with Node.js, Express, and TypeScript, this API powers user authentication, property management, and search capabilities.
MyHomeFinder aims to simplify how users discover and manage properties. The backend provides secure and scalable endpoints for user registration, login, property listing, and admin operations — ready for frontend integration.
The MVP backend includes:
- RESTful API endpoints for:
- User authentication (register/login) for both the users and landlords
- CRUD for property listings
- Middleware for validation and error handling
- Basic environment config
- TypeScript structure with
tsconfig
.env
and configuration setup
- Project scaffolded with Express + TypeScript
- Basic folder structure (
src/
) - Authentication routes
- Property listing routes
- PostgreSQL setup
- Validation middleware
- API documentation (Swagger/Postman)
- Node.js
- Express.js
- TypeScript
- Dotenv
- Nodemon + ts-node-dev
- PostgreSQL (via Prisma)
- Joi/Zod for validation (planned)
# Fork the repo to your GitHub account and then clone your fork
git clone https://github.com/<your-username>/my-homefinder-backend.git
cd my-homefinder-backend
# Install dependencies
npm install
# Create .env file from sample and update with your settings
cp .env.template .env
# Open `.env` and update the DATABASE_URL and other env variables accordingly
# Database Migration
npx prisma migrate dev --name init
# Generate Prisma client
npx prisma generate
# Start development server
npm run dev