untitled-4770
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.
Viewing readonly version of main branch: v9View latest version
A real-time messaging application for work groups where team members can register with unique usernames and send messages to keep each other updated.
- User registration with unique usernames
- Real-time messaging within work groups
- Message history with timestamps
- Username display alongside each message
- Simple, clean interface
├── backend/
│ ├── database/
│ │ ├── migrations.ts # Database schema setup
│ │ └── queries.ts # Database query functions
│ ├── routes/
│ │ ├── auth.ts # User registration/login
│ │ └── messages.ts # Message CRUD operations
│ └── index.ts # Main Hono server
├── frontend/
│ ├── components/
│ │ ├── App.tsx # Main app component
│ │ ├── Login.tsx # Login/registration form
│ │ ├── MessageList.tsx # Message display
│ │ └── MessageForm.tsx # Message input form
│ ├── index.html # Main HTML template
│ └── index.tsx # Frontend entry point
└── shared/
└── types.ts # Shared TypeScript types
POST /api/auth/register- Register new userPOST /api/auth/login- Login existing userGET /api/messages- Get all messagesPOST /api/messages- Send new message
- id (INTEGER PRIMARY KEY)
- username (TEXT UNIQUE)
- created_at (TEXT)
- id (INTEGER PRIMARY KEY)
- user_id (INTEGER)
- username (TEXT)
- content (TEXT)
- created_at (TEXT)
- Register with a unique username
- Start sending messages to your work group
- View real-time updates from other team members