Backend

This directory contains the server-side code for the Job Board with Chat application.

Structure

  • index.ts - Main entry point with Hono API routes
  • database/ - Database setup and queries
    • migrations.ts - Database schema definitions
    • queries.ts - Database query functions

API Endpoints

Jobs

  • GET /api/jobs - Get all job listings
  • POST /api/jobs - Create a new job listing

Messages

  • GET /api/messages - Get recent chat messages
  • POST /api/messages - Create a new chat message

Database

The application uses SQLite for data storage with two main tables:

  1. jobs_v1 - Stores job listings
  2. messages_v1 - Stores chat messages