mirror of
https://github.com/temetro/temetro.git
synced 2026-07-26 11:58:14 +00:00
730e07fcfc
Add conversations/participants/messages tables, a participant-scoped REST API (/api/conversations) and a Socket.io server (session-authenticated handshake; per-user + per-conversation rooms) sharing the HTTP port. New messages broadcast live and create per-recipient notifications. Also lands the notifications table + service + routes (used by the message flow). The Messages page is rewritten: live threads, unread state, and a compose dialog to start a conversation with a clinic member. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
46 lines
1.3 KiB
JSON
46 lines
1.3 KiB
JSON
{
|
|
"name": "temetro-backend",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"description": "temetro backend — Express + Postgres API with Better Auth (email/password, organizations) and org-scoped patient records.",
|
|
"license": "MIT",
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"scripts": {
|
|
"dev": "tsx watch src/index.ts",
|
|
"build": "tsc -p tsconfig.json",
|
|
"start": "node dist/index.js",
|
|
"typecheck": "tsc --noEmit",
|
|
"auth:generate": "better-auth generate --config src/auth.ts --output src/db/schema/auth.ts -y",
|
|
"db:generate": "drizzle-kit generate",
|
|
"db:migrate": "drizzle-kit migrate",
|
|
"db:apply": "node dist/migrate.js",
|
|
"db:push": "drizzle-kit push"
|
|
},
|
|
"dependencies": {
|
|
"better-auth": "^1.6.13",
|
|
"cors": "^2.8.6",
|
|
"dotenv": "^17.4.2",
|
|
"drizzle-orm": "^0.45.2",
|
|
"express": "^5.2.1",
|
|
"nanoid": "^5.1.11",
|
|
"nodemailer": "^8.0.10",
|
|
"pg": "^8.21.0",
|
|
"socket.io": "^4.8.3",
|
|
"zod": "^4.4.3"
|
|
},
|
|
"devDependencies": {
|
|
"@better-auth/cli": "^1.4.21",
|
|
"@types/cors": "^2.8.19",
|
|
"@types/express": "^5.0.6",
|
|
"@types/node": "^25.9.1",
|
|
"@types/nodemailer": "^8.0.0",
|
|
"@types/pg": "^8.20.0",
|
|
"drizzle-kit": "^0.31.10",
|
|
"tsx": "^4.22.4",
|
|
"typescript": "^6.0.3"
|
|
}
|
|
}
|