A business directory and exchange platform for South African businesses
# SA Business Exchange
A modern business directory and asset marketplace platform for South African businesses to connect, trade, and grow together.
## 🎯 Features
- 🏢 **Business Registration & Verification** - Register your business with verification workflow
- 📋 **Asset Listings** - Create listings for daily/weekly/monthly rentals and sales
- 🔍 **Advanced Search & Filtering** - Find businesses and assets by category, location, and more
- ⭐ **Trust Score System** - Build reputation through successful transactions
- 🗺️ **Province & City-based Discovery** - Discover local businesses and opportunities
- 📊 **Business Analytics Dashboard** - Track your listings and performance
- 📝 **Rental Requests Management** - Manage rental inquiries and bookings
- 📑 **Rental Agreements** - Create and manage formal rental agreements
- 📸 **Fault Reporting System** - Document and report equipment issues with photos
- 💬 **Document Management** - Store and manage rental documents
- 🔒 **Account Settings** - Manage your business profile and preferences
## 📱 Tech Stack
- **Frontend**: Next.js 14, React 18, TypeScript, Tailwind CSS
- **Backend**: Next.js API Routes
- **Database**: PostgreSQL with Prisma ORM
- **Authentication**: Session-based (ready for auth implementation)
- **File Storage**: Cloud storage ready (S3, Azure Blob, etc.)
## 🚀 Getting Started
### Prerequisites
- Node.js 18+
- PostgreSQL 12+
- npm or yarn
### Installation
1. **Clone the repository**
```bash
git clone
github.com
cd sa-business-exchange
```
2. **Install dependencies**
```bash
npm install
```
3. **Set up environment variables**
```bash
cp .env.example .env.local
```
Update `.env.local` with your PostgreSQL database URL:
```
DATABASE_URL="postgresql://user:password@localhost:5432/sa_business_exchange"
NEXT_PUBLIC_API_URL="
localhost"
```
4. **Set up the database**
```bash
# Run migrations
npx prisma migrate dev
# Generate Prisma Client
npx p …