Used Items Marketplace

A marketplace app where people can post used items for sale and negotiate in a public chat room.

Features

  • šŸ“¦ Post items for sale with title, description, price, and contact info
  • šŸ’¬ Public chat room for negotiations and discussions
  • šŸ” Browse all available items
  • šŸ“± Responsive design

Project Structure

ā”œā”€ā”€ backend/
│   ā”œā”€ā”€ database/
│   │   ā”œā”€ā”€ migrations.ts    # Database schema setup
│   │   └── queries.ts       # Database query functions
│   ā”œā”€ā”€ routes/
│   │   ā”œā”€ā”€ items.ts         # Item CRUD operations
│   │   └── chat.ts          # Chat message operations
│   └── index.ts             # Main Hono server
ā”œā”€ā”€ frontend/
│   ā”œā”€ā”€ components/
│   │   ā”œā”€ā”€ App.tsx          # Main app component
│   │   ā”œā”€ā”€ ItemList.tsx     # Display items for sale
│   │   ā”œā”€ā”€ ItemForm.tsx     # Form to post new items
│   │   └── ChatRoom.tsx     # Public chat interface
│   ā”œā”€ā”€ index.html           # Main HTML template
│   └── index.tsx            # Frontend entry point
└── shared/
    └── types.ts             # Shared TypeScript types

Tech Stack

  • Backend: Hono (TypeScript API framework)
  • Database: SQLite
  • Frontend: React with TypeScript
  • Styling: TailwindCSS
  • Real-time: Polling for chat updates

Getting Started

The app is automatically deployed on Val Town. Visit the HTTP endpoint to start using the marketplace.