A full-stack messaging application built with Val Town, featuring real-time communication between users.
├── backend/
│ ├── database/
│ │ ├── migrations.ts # Database schema setup
│ │ └── queries.ts # Database query functions
│ ├── routes/
│ │ ├── auth.ts # Authentication routes
│ │ ├── messages.ts # Message routes
│ │ ├── users.ts # User routes
│ │ └── static.ts # Static file serving
│ └── index.ts # Main Hono app entry point
├── frontend/
│ ├── components/
│ │ ├── App.tsx # Main app component
│ │ ├── Login.tsx # Login/register form
│ │ ├── MessageList.tsx # Message display
│ │ ├── MessageInput.tsx # Message input form
│ │ └── UserList.tsx # Online users list
│ ├── index.html # Main HTML template
│ ├── index.tsx # Frontend entry point
│ └── style.css # Custom styles
├── shared/
│ └── types.ts # Shared TypeScript types
└── README.md
POST /api/auth/register - Register new userPOST /api/auth/login - User loginGET /api/users - Get all usersGET /api/messages - Get message historyPOST /api/messages - Send new messageGET /api/messages/stream - SSE endpoint for real-time messages