paperclip/server/src
Forgotten 4bc8e8baa9 Add embedded PGlite support as zero-config database option
Add @electric-sql/pglite so the server can run without an external
Postgres instance. When DATABASE_URL is not set, the server auto-creates
an embedded PGlite database in ./data/pglite with schema push on startup.

- Add createPgliteDb() alongside the existing createDb()
- Make DATABASE_URL optional in server config
- Update drizzle config to glob schema files
- Update migrate script to support both Postgres and PGlite
- Add data/ to .gitignore for local PGlite storage

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 19:07:37 -06:00
..
__tests__ Add API server with routes, services, and middleware 2026-02-16 13:31:58 -06:00
middleware Add API server with routes, services, and middleware 2026-02-16 13:31:58 -06:00
routes Add API server with routes, services, and middleware 2026-02-16 13:31:58 -06:00
services Add API server with routes, services, and middleware 2026-02-16 13:31:58 -06:00
app.ts Add API server with routes, services, and middleware 2026-02-16 13:31:58 -06:00
config.ts Add embedded PGlite support as zero-config database option 2026-02-16 19:07:37 -06:00
index.ts Add embedded PGlite support as zero-config database option 2026-02-16 19:07:37 -06:00