Test
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://stevek--6f3daa463f8611f08bf676b3cceeab13.web.val.run
A full-stack application for posting job opportunities and discussing 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
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 recent chat messagesPOST /api/chat/messages
- Send a new chat message
- id (INTEGER PRIMARY KEY)
- title (TEXT)
- company (TEXT)
- description (TEXT)
- location (TEXT)
- salary (TEXT)
- contact_email (TEXT)
- created_at (DATETIME)
- id (INTEGER PRIMARY KEY)
- username (TEXT)
- message (TEXT)
- created_at (DATETIME)
This app runs on Val Town. The backend serves both the API and the frontend files.
Visit the HTTP endpoint to access the application.