Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/inversify/inversify-express-example
The official express + inversify+ inversify-express-utils examples
https://github.com/inversify/inversify-express-example
dependency-injection express inversifyjs inversifyjs-examples inversion-of-control mongodb nodejs
Last synced: 8 days ago
JSON representation
The official express + inversify+ inversify-express-utils examples
- Host: GitHub
- URL: https://github.com/inversify/inversify-express-example
- Owner: inversify
- License: mit
- Created: 2016-06-22T10:02:00.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-03-26T10:26:30.000Z (8 months ago)
- Last Synced: 2024-04-15T11:46:37.659Z (7 months ago)
- Topics: dependency-injection, express, inversifyjs, inversifyjs-examples, inversion-of-control, mongodb, nodejs
- Language: TypeScript
- Homepage:
- Size: 295 KB
- Stars: 268
- Watchers: 19
- Forks: 81
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# inversify-express-example
[![Travis](https://img.shields.io/travis/inversify/inversify-express-example.svg?style=flat-square&label=Travis)](https://travis-ci.org/inversify/inversify-express-example)
[![Dependencies](https://david-dm.org/inversify/inversify-express-example.svg)](https://david-dm.org/inversify/inversify-express-example#info=dependencies)
[![img](https://david-dm.org/inversify/inversify-express-example/dev-status.svg)](https://david-dm.org/inversify/inversify-express-example/#info=devDependencies)
[![img](https://david-dm.org/inversify/inversify-express-example/peer-status.svg)](https://david-dm.org/inversify/inversify-express-example/#info=peerDependenciess)>The official express + inversify + inversify-express-utils example
## Use examples
First of all run `npm install`
You can start a example by using `ts-node`
```
$ npm install -g ts-node
$ ts-node /bootstrap
```
This will start up the server and you can use the exampleIf you want to run the unit tests, simply use `npm test /**/*.spec.ts`
To run all tests simply run `npm run test:all`
## Currently available examples
Name | Description
------- | -------------------------------------------------------------------------------------------------------------------------------
Basic | A really basic example. Nothing too fancy.
MongoDB | Similar to the basic example. This time with MongoDB and some middleware. For detailed information see the readme in the folder.
BindingDecorators | Similar to the basic example. This time with inversify-binding-decorators.
MiddlewareInjection | A small example that shows how to inject middleware into controllers.
PostgresAndTypeORM | A small example that shows how to integrate inversify-express-utils with TypeORM.