Installation

Follow this structured guide to set up Decorated Factory in your project.

Core Dependency Installation

First, install the required reflection metadata package:

npm install reflect-metadata

Dependency Configuration

Add this essential initialization to your application entry file:

import "reflect-metadata";
 
// Rest of your application initialization
⚠️

Critical Setup: Metadata reflection must be initialized before any dependent components are loaded

Library Installation

Install the core package and Faker.js as development dependencies:

npm install decorated-factory @faker-js/faker --save-dev

On this page