@heyhru/app-dms-server 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/index.js +5239 -58
- package/package.json +2 -3
- package/dist/chunk-QGM4M3NI.js +0 -37
- package/dist/pg.adapter-BNI42SHT.js +0 -5181
- package/dist/sqlite.adapter-SCNLOKBD.js +0 -37
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ DMS (Database Management System) backend service. Provides user management, data
|
|
|
5
5
|
## Tech Stack
|
|
6
6
|
|
|
7
7
|
- **Framework**: [Fastify](https://fastify.dev) (`@fastify/cors`, `@fastify/cookie`)
|
|
8
|
-
- **Internal DB**:
|
|
8
|
+
- **Internal DB**: PostgreSQL via `pg` (plain SQL migrations)
|
|
9
9
|
- **Target DBs**: `@heyhru/server-util-mysql`, `@heyhru/server-util-pg`
|
|
10
10
|
- **Auth**: JWT cookie (`@heyhru/server-util-jwt` + `@heyhru/server-util-crypto` scrypt)
|
|
11
11
|
- **Encryption**: AES-256-GCM via `@heyhru/server-util-crypto`
|
|
@@ -31,7 +31,7 @@ pnpm test
|
|
|
31
31
|
| `PORT` | `3001` | Server port |
|
|
32
32
|
| `JWT_SECRET` | `dev-secret-...` | JWT signing secret |
|
|
33
33
|
| `ENCRYPTION_KEY` | `dev-encryption-...` | 32-byte key for AES-256-GCM |
|
|
34
|
-
| `DATABASE_URL` |
|
|
34
|
+
| `DATABASE_URL` | _(required)_ | PostgreSQL connection string |
|
|
35
35
|
| `NODE_ENV` | `development` | Set to `production` to enable Secure cookie |
|
|
36
36
|
|
|
37
37
|
> All defaults are for local development only. Always set real secrets in production.
|