entity-routes logo
Docs

Installation#

With entity-routes (and therefore TypeORM), you will find yourself using a lot of Typescript Decorators.

By "decorating" a class declaration, method, accessor, property, or parameter, you can associate additional information (metadata) and use it to make things like @EntityRoute/@Groups.

Prerequisites#

#
bash
1npm i @entity-routes/core @entity-routes/express reflect-metadata typeorm

or

#
bash
1npm i @entity-routes/core @entity-routes/koa reflect-metadata typeorm

Since this library depends on it, we need to enable them

#
json
1{
2 "emitDecoratorMetadata": true,
3 "experimentalDecorators": true
4}

Import reflect-metadata in your app entrypoint.

#
typescript
1import "reflect-metadata";
Prev
Features
Next
Quick start