A lightweight PostgreSQL seeding server designed for E2E tests, version 0.2.0. It runs as an HTTP server that auto-generates REST endpoints for each database table, allowing tests to seed or truncate data via POST requests. Integrates easily with Cypress and Playwright. Requires an existing database schema. Can be deployed via Docker compose or npm. No CLI or programmatic API beyond the HTTP server.
npm install db-seeder-postgresNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows seeding and truncating a PostgreSQL table via HTTP POST using Cypress or Playwright.
Initialize database schema via SQL migration or entrypoint script before starting the seeder.
Use POST requests with the appropriate JSON body.
Ensure all four variables are available to the server process.
Pass query parameter ?noCascade=true if you do not want cascading truncation.
Start the server with `npm run db-seeder` or via Docker compose, ensure port 3000 is exposed and accessible.
Create the table via SQL before starting the seeder, e.g., by adding an init SQL script to Docker entrypoint.
Set POSTGRES_PASSWORD in .env file or environment of the seeder container/process.
No dependency data recorded yet.