Business Directory Application

A web application that allows people to post and discover local businesses with detailed information and contact details.

Features

  • Post new business listings with comprehensive details
  • Browse all posted businesses in an organized interface
  • Search and filter businesses by category, location, or name
  • Contact information and business descriptions
  • Responsive design for mobile and desktop

Project Structure

├── backend/
│   ├── database/
│   │   ├── migrations.ts    # Database schema setup
│   │   └── queries.ts       # Database query functions
│   ├── routes/
│   │   └── businesses.ts    # Business-related API endpoints
│   └── index.ts             # Main Hono server entry point
├── frontend/
│   ├── components/
│   │   ├── App.tsx          # Main React application
│   │   ├── BusinessForm.tsx # Form for posting new businesses
│   │   ├── BusinessList.tsx # List component for displaying businesses
│   │   └── BusinessCard.tsx # Individual business display component
│   ├── index.html           # Main HTML template
│   └── index.tsx            # Frontend React entry point
└── shared/
    └── types.ts             # Shared TypeScript types

API Endpoints

  • GET /api/businesses - Get all posted businesses
  • POST /api/businesses - Post a new business
  • DELETE /api/businesses/:id - Delete a business post
  • GET /api/businesses/search?q=term - Search businesses

Getting Started

The application is ready to use once deployed. Visit the main URL to start posting and discovering businesses.