Bog
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://bogumil--fcbeb75c3f9f11f0aaaa76b3cceeab13.web.val.run
A full-stack application that allows users to post job opportunities and discuss them in a public chat room.
- Job Postings: Create, view, and manage job postings
- Public Chat: Real-time chat room for discussing opportunities
- Responsive Design: Works on desktop and mobile devices
βββ backend/
β βββ database/
β β βββ migrations.ts # Database schema setup
β β βββ queries.ts # Database query functions
β βββ routes/
β β βββ jobs.ts # Job posting API routes
β β βββ chat.ts # Chat API routes
β βββ index.ts # Main Hono server
βββ frontend/
β βββ components/
β β βββ App.tsx # Main application component
β β βββ JobBoard.tsx # Job listings component
β β βββ JobForm.tsx # Job posting form
β β βββ ChatRoom.tsx # Chat interface
β βββ index.html # Main HTML template
β βββ index.tsx # Frontend entry point
βββ shared/
βββ types.ts # Shared TypeScript types
- Backend: Hono (TypeScript API framework)
- Database: SQLite
- Frontend: React with TypeScript
- Styling: TailwindCSS
- Real-time: Polling-based chat updates
GET /api/jobs
- Get all job postingsPOST /api/jobs
- Create a new job postingDELETE /api/jobs/:id
- Delete a job posting
GET /api/chat/messages
- Get chat messagesPOST /api/chat/messages
- Send a chat message
The app is automatically deployed on Val Town. Visit the main URL to access the application.