1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { getMessagesByJobId, createMessage } from "../database/queries.ts";
3import type { CreateMessageRequest } from "../../shared/types.ts";
4
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { getAllJobs, getJobById, createJob } from "../database/queries.ts";
3import type { CreateJobRequest } from "../../shared/types.ts";
4
28 )`);
29
30 console.log('Database migrations completed');
31}
32
14```
15โโโ backend/
16โ โโโ database/
17โ โ โโโ migrations.ts # Database schema setup
18โ โ โโโ queries.ts # Database query functions
19โ โโโ routes/
20โ โ โโโ jobs.ts # Job posting endpoints
16โโโ backend/
17โ โโโ index.ts # Main Hono server
18โ โโโ database/
19โ โ โโโ migrations.ts # Database schema
20โ โ โโโ queries.ts # Database queries
21โ โโโ routes/
22โ โโโ api.ts # API endpoints
75## Development
76
77- **Backend**: Hono framework with SQLite database
78- **Frontend**: React 18 with TypeScript
79- **Styling**: TailwindCSS with custom CSS animations
80- **Database**: SQLite for persistent data storage
81- **Deployment**: Val Town serverless platform
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { getChatMessages, createChatMessage } from "../database/queries.ts";
3import type { ChatFormData } from "../../shared/types.ts";
4
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { getAllProperties, createProperty, getPropertyById } from "../database/queries.ts";
3import type { PropertyFormData } from "../../shared/types.ts";
4
35 `);
36
37 console.log('Database migrations completed');
38}
39
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { readFile, serveFile } from "https://esm.town/v/std/utils@85-main/index.ts";
3import { runMigrations, seedData } from "./database/migrations.ts";
4import { getAllApproaches, getAllSpecialties, getAllBodyRegions } from "./database/queries.ts";
5import api from "./routes/api.ts";
6
12});
13
14// Initialize database on startup
15await runMigrations();
16await seedData();
14- **Frontend**: React 18.2.0 with TypeScript
15- **Backend**: Hono framework
16- **Database**: SQLite
17- **Styling**: TailwindCSS
18- **Real-time**: WebSocket for chat functionality
22```
23โโโ backend/
24โ โโโ database/
25โ โ โโโ migrations.ts # Database schema
26โ โ โโโ queries.ts # Database operations
27โ โโโ routes/
28โ โ โโโ properties.ts # Property CRUD operations
43## Getting Started
44
451. The app will automatically set up the database on first run
462. Navigate to the app URL to start using the platform
473. Add properties using the "Add Property" form