AIHandsOn
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.
index.ts
https://starx_25--161107fa3f9111f0a2fa76b3cceeab13.web.val.run
A collaborative platform where users can post their weekly reports and engage in public discussions about feedback and comments.
- π Weekly Reports: Users can submit and view weekly progress reports
- π¬ Public Chat: Real-time chat room for feedback and discussions
- π₯ Community Driven: Open platform for team collaboration
- π± Responsive Design: Works on desktop and mobile devices
βββ backend/
β βββ database/
β β βββ migrations.ts # Database schema setup
β β βββ queries.ts # Database query functions
β βββ routes/
β β βββ reports.ts # Weekly reports API
β β βββ chat.ts # Chat API
β βββ index.ts # Main Hono server
βββ frontend/
β βββ components/
β β βββ App.tsx # Main application component
β β βββ ReportForm.tsx # Weekly report submission form
β β βββ ReportsList.tsx # Display weekly reports
β β βββ ChatRoom.tsx # Public chat interface
β βββ index.html # Main HTML template
β βββ index.tsx # Frontend entry point
βββ shared/
βββ types.ts # Shared TypeScript types
GET /api/reports
- Get all weekly reportsPOST /api/reports
- Submit a new weekly reportGET /api/chat/messages
- Get chat messagesPOST /api/chat/messages
- Send a chat message
This app runs on Val Town. The backend serves both the API and static files, with real-time updates for the chat functionality.