Getting Started
Installation
Install npm package
npm install odi --save
Install reflect-metadata
npm install reflect-metadata --save
Import reflect-metadata (for example in
index.ts
):import "reflect-metadata";
Enabled the following settings in
tsconfig.json
Hello World application
First of all, let's create simple controller hello.controller.ts
And our startup file index.ts
Build your application and run it tsc && node index.js
Check it in your browser
It was just a basic example. There are many other interesting things. Check docs for further information.
Last updated