• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
Zee_paul

Zee_paul

App

Public
Like
App
Home
Code
7
backend
3
frontend
4
shared
1
README.md
new-file-3843.tsx
new-file-3872.tsx
new-file-7891.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
Code
/
Search
index.ts
https://Zee_paul--7e4c76be3f7911f0b7ad76b3cceeab13.web.val.run
README.md

E-Commerce Chat App

A full-featured online shopping platform with integrated customer support chat.

Features

E-Commerce

  • Product catalog with categories
  • Shopping cart functionality
  • Checkout process
  • Order management
  • Product search and filtering

Chat System

  • Real-time customer support chat
  • Chat history
  • Multiple chat rooms/conversations
  • Admin chat interface

Project Structure

β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ database/
β”‚   β”‚   β”œβ”€β”€ migrations.ts    # Database schema setup
β”‚   β”‚   └── queries.ts       # Database query functions
β”‚   β”œβ”€β”€ routes/
β”‚   β”‚   β”œβ”€β”€ products.ts      # Product API endpoints
β”‚   β”‚   β”œβ”€β”€ cart.ts          # Shopping cart endpoints
β”‚   β”‚   β”œβ”€β”€ orders.ts        # Order management
β”‚   β”‚   β”œβ”€β”€ chat.ts          # Chat API endpoints
β”‚   β”‚   └── static.ts        # Static file serving
β”‚   └── index.ts             # Main Hono server
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ App.tsx          # Main app component
β”‚   β”‚   β”œβ”€β”€ ProductList.tsx  # Product catalog
β”‚   β”‚   β”œβ”€β”€ Cart.tsx         # Shopping cart
β”‚   β”‚   β”œβ”€β”€ Checkout.tsx     # Checkout form
β”‚   β”‚   └── Chat.tsx         # Chat interface
β”‚   β”œβ”€β”€ index.html           # Main HTML template
β”‚   β”œβ”€β”€ index.tsx            # Frontend entry point
β”‚   └── style.css            # Custom styles
└── shared/
    └── types.ts             # Shared TypeScript types

Tech Stack

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

Getting Started

The app will be available at the HTTP endpoint once deployed. The backend serves both the API and the frontend files.

API Endpoints

Products

  • GET /api/products - Get all products
  • GET /api/products/:id - Get product by ID
  • GET /api/products/category/:category - Get products by category

Cart

  • GET /api/cart/:sessionId - Get cart contents
  • POST /api/cart/:sessionId/add - Add item to cart
  • PUT /api/cart/:sessionId/update - Update cart item
  • DELETE /api/cart/:sessionId/remove/:productId - Remove item from cart

Orders

  • POST /api/orders - Create new order
  • GET /api/orders/:id - Get order details

Chat

  • GET /api/chat/messages/:roomId - Get chat messages
  • POST /api/chat/messages - Send chat message
  • GET /api/chat/stream/:roomId - SSE stream for real-time messages
HTTP
  • index.ts
    Zee_paul--7e…13.web.val.run
Code
backendfrontendsharedREADME.mdnew-file-3843.tsxnew-file-3872.tsxnew-file-7891.tsx
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
Β© 2025 Val Town, Inc.