Skip to content

ynwd/fastify-di-example

Repository files navigation

fastify-di simple example

Folder Structure:

.
├── src
│   ├── __tests__
│   │   ├── hello.controller.spec.ts
│   │   ├── hello.service.spec.ts
│   │   └── support.plugin.spec.ts
│   ├── user.entity.ts
│   ├── hello.schema.ts
│   ├── hello.service.ts
│   ├── hello.controller.ts
│   ├── support.plugin.ts
│   └── main.ts
├── package.json
├── server.config.js
├── tsconfig.build.json
└── tsconfig.json

Usage:

npm install
npm run build
npm start

Development & Test:

npm run dev
npm test