title: Quick Start description: Start with model + migration + seed in one pass.
Quick Start
Version:1.1.4
Quick setup
Install the package, Express.js, and the minimum TypeScript tooling first:dotenv and @faker-js/faker are already included by the package runtime. Install them separately only if your own app imports them directly:
.env.
Do not place multiple connection names in DB_CONNECTION.
Quick .env key list:
DB_CONNECTIONDB_TEST_CONNECTIONDB_*orPG_*orSQLITE_*orMONGO_*
.env:
src/app/models/Post.tssrc/app/services/PostService.tssrc/app/controllers/PostController.ts- a migration file for your configured target
Runtime setup
This ORM is compatible with Express.js and is typically used in Express route handlers. In this setup,registerModels runs safely at startup and models work without integration issues.
- Ensure model registration is completed at app bootstrap.
- Generate and apply migrations in order.
- Seed test fixtures and run a demo scenario.
- Create, query, update, and delete records.
- If the model uses soft deletes, restore instead of recreating.