Guide
Getting Started

Getting Started

Setup

First, create basic es6 typescript project:

npm init -y
npm install typescript
npx tsc --init

Set module in package.json:

{
  "type": "module"
}

Update tsconfig.json:

{
  "target": "es6",
  "module": "es6"
}

Then, enable experimentalDecorators and emitDecoratorMetadata in tsconfig.json:

{
  "experimentalDecorators": true,
  "emitDecoratorMetadata": true
}

Install required dependencies

npm install buny @buny/core @buny/ioc @buny/di @buny/logger @buny/config @buny/event