FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
ITHILI
ITHILIAPP
Public
Like
APP
Home
Code
4
backend
3
frontend
4
shared
1
README.md
Branches
1
Pull requests
Remixes
History
Environment variables
Settings
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
6/2/2025
README.md

Business-Consumer Network

A networking platform that connects business professionals from all industries with consumers, featuring real-time chat communication.

Features

  • User Registration: Separate registration for business professionals and consumers
  • Industry Categories: Business users can select from various industry categories
  • User Discovery: Browse and search for business professionals or consumers
  • Real-time Chat: Direct messaging between users with persistent chat history
  • Profile Management: User profiles with industry information and contact details

Project Structure

├── backend/
│   ├── database/
│   │   ├── migrations.ts    # Database schema setup
│   │   └── queries.ts       # Database query functions
│   ├── routes/
│   │   ├── auth.ts         # Authentication endpoints
│   │   ├── users.ts        # User management endpoints
│   │   ├── chat.ts         # Chat functionality endpoints
│   │   └── static.ts       # Static file serving
│   └── index.ts            # Main Hono server
├── frontend/
│   ├── components/
│   │   ├── App.tsx         # Main application component
│   │   ├── Auth.tsx        # Login/Register forms
│   │   ├── UserList.tsx    # User discovery interface
│   │   ├── Chat.tsx        # Chat interface
│   │   └── Profile.tsx     # User profile component
│   ├── 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)
  • Database: SQLite with Val Town's sqlite service
  • Frontend: React with TypeScript
  • Styling: TailwindCSS
  • Real-time: Polling-based chat updates

Getting Started

  1. The app will automatically set up the database on first run
  2. Register as either a business professional or consumer
  3. Browse other users and start conversations
  4. Use the chat interface to communicate in real-time

Database Schema

  • users: User profiles with type (business/consumer) and industry
  • messages: Chat messages between users with timestamps
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.