DERICK
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://deebons--dcfe912a3fa011f09c9076b3cceeab13.web.val.run
A full-stack job posting application where users can post job opportunities and discuss them in a public chatroom.
- Job Postings: Create, view, and browse job listings
- Public Chatroom: Real-time chat 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)
- Frontend: React with TypeScript
- Database: SQLite
- Styling: TailwindCSS
- Real-time: Server-sent events for chat
GET /api/jobs
- Get all job postingsPOST /api/jobs
- Create a new job posting
GET /api/chat/messages
- Get chat messagesPOST /api/chat/messages
- Send a chat messageGET /api/chat/stream
- Server-sent events for real-time chat
This is a Val Town project. The main entry point is backend/index.ts
which serves both the API and frontend files.