Public
Like
untitled-7712
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.
Viewing readonly version of main branch: v8View latest version
This directory contains the server-side code for the Job Board application.
index.ts- Main entry point for the Hono API serverdatabase/- Database setup and queriesmigrations.ts- Database schema definitionsqueries.ts- Database query functions
GET /api/users- Get all usersPOST /api/users- Create a new user- Body:
{ "username": "string" }
- Body:
GET /api/jobs- Get all job listingsPOST /api/jobs- Create a new job listing- Body:
{ "title": "string", "company": "string", "description": "string", "location": "string", "contactEmail": "string", "postedBy": "string" }
- Body:
GET /api/messages- Get chat messages- Query params:
limit(optional, default: 50)
- Query params:
POST /api/messages- Send a new chat message- Body:
{ "content": "string", "username": "string" }
- Body: