Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hapinessjs/mingo-module
Module deals with MinIO and MongoDB in Hapiness framework
https://github.com/hapinessjs/mingo-module
Last synced: 7 days ago
JSON representation
Module deals with MinIO and MongoDB in Hapiness framework
- Host: GitHub
- URL: https://github.com/hapinessjs/mingo-module
- Owner: hapinessjs
- License: mit
- Created: 2017-12-14T11:22:42.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T10:17:24.000Z (about 2 years ago)
- Last Synced: 2024-12-08T13:15:39.572Z (30 days ago)
- Language: TypeScript
- Size: 663 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# mingo module
This module helps you manage files with minio as file storage and mongodb for metadata.
It uses `@hapiness/minio` module and `@hapiness/mongodb` module.
## Table of contents
* [Change History](#change-history)
* [Maintainers](#maintainers)
* [License](#license)[Back to top](#table-of-contents)
## Usage
In your service:
```typescript
@Injectable()
class MyService {constructor(private _mingoService) {}
uploadFile(...) {
this._mingoService.fromBucket('my_bucket').createFromStream(input, filename, 'image/jpeg', metadata);
}
}
```## Change History
* v2.0.0 (2019-02-15)
* Breaking Change: Add bucket name in the file document
* v1.4.0 (2019-02-14 🌹)
* Added a new repository layer
* Implemented a basic retry strategy for compatibility with comsodb _error 429_. (No impact on mongodb)
* Added a new optional config option db.maxRetryAttempts: Number to determine max number of retry on cosmo retry strategy. _Default is 9._
* v1.3.0 (2019-01-30)
* Update to @hapiness/core 1.6.x
* Update to @hapiness/minio 2.0.1
* v1.2.0 (2018-04-25)
* Update to @hapiness/mongo 2.x
* v1.1.2 (2018-02-14)
* MingoModel now have an id exposed.
* Fix when calling the toJson method but value returned by mongo is null.
* v1.1.1 (2018-02-13)
* Fix returned object, now doesn't include mongoose metadata
* v1.1.0 (2018-01-30)
* Update mingo model
* Minor code updates
* v1.0.0 (2018-01-18)
* First release[Back to top](#table-of-contents)
## Maintainers
Julien Fauville
Antoine Gomez
Sébastien Ritz
Nicolas Jessel
Florent Bennani
[Back to top](#table-of-contents)
## License
Copyright (c) 2017 **Hapiness** Licensed under the [MIT license](https://github.com/hapinessjs/mingo-module/blob/master/LICENSE.md).
[Back to top](#table-of-contents)