https://github.com/mildronize/typeorm-di
It's just TypeORM, TypeDI and typeorm-typedi-extensions wrapper.
https://github.com/mildronize/typeorm-di
Last synced: about 1 year ago
JSON representation
It's just TypeORM, TypeDI and typeorm-typedi-extensions wrapper.
- Host: GitHub
- URL: https://github.com/mildronize/typeorm-di
- Owner: mildronize
- Created: 2020-10-29T16:22:01.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-10-30T13:21:46.000Z (over 5 years ago)
- Last Synced: 2025-02-24T10:48:28.602Z (over 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TypeORM + TypeDI
[](https://travis-ci.org/mildronize/typeorm-di)
It's just [TypeORM](https://typeorm.io/), [TypeDI](https://github.com/typestack/typedi) and [typeorm-typedi-extensions](https://github.com/typeorm/typeorm-typedi-extensions) wrapper.
You can import all from one place :)
e.g.
```bash
import { Connection, createConnection, useContainer , Container} from "typeorm-di";
```
For the usage, you can read on the [TypeORM](https://typeorm.io/), [TypeDI](https://github.com/typestack/typedi) and [typeorm-typedi-extensions](https://github.com/typeorm/typeorm-typedi-extensions) documentations.
## Installation
1. Install the module
```bash
npm install typeorm-di
```
2. Install all dependencies (Peer)
```bash
npm install typeorm typedi typeorm-typedi-extensions reflect-metadata
```
###
## For building
```
npm install typeorm typedi typeorm-typedi-extensions reflect-metadata @types/node
npm build
```
## Docs
There is only one object that duplicate between `TypeORM` and `TypeDI`: `ObjectType`
In case you want to use `ObjectType`
```
import { ObjectType } from "typeorm-di"; // from `TypeORM`
import { ObjectTypeDI } from "typeorm-di"; //from `TypeDI`