feat: Implement core API endpoints, database schema, ActivityPub federation, and initial user interface for the application.

This commit is contained in:
Christopher
2026-01-22 02:44:46 -08:00
parent 537fc5e8c2
commit b76e586bbc
62 changed files with 9447 additions and 115 deletions
+17
View File
@@ -0,0 +1,17 @@
import { drizzle } from 'drizzle-orm/neon-http';
import { neon } from '@neondatabase/serverless';
import * as schema from './schema';
// Create the Neon client (with fallback for UI testing)
const sql = process.env.DATABASE_URL
? neon(process.env.DATABASE_URL)
: null;
// Create the Drizzle client
export const db = sql ? drizzle(sql, { schema }) : null;
// Helper to check if DB is available
export const isDbAvailable = () => db !== null;
// Export schema for use elsewhere
export * from './schema';