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 miliseconds.
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.