https://github.com/rumkin/singular-mongoose
Mongoose factory for singular app
https://github.com/rumkin/singular-mongoose
Last synced: about 1 year ago
JSON representation
Mongoose factory for singular app
- Host: GitHub
- URL: https://github.com/rumkin/singular-mongoose
- Owner: rumkin
- License: other
- Created: 2016-12-11T20:34:55.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-17T19:19:04.000Z (over 9 years ago)
- Last Synced: 2025-03-02T23:05:23.069Z (over 1 year ago)
- Language: JavaScript
- Homepage: http://npmjs.com/package/singular-mongoose
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- License: LICENSE
Awesome Lists containing this project
README
# Singular Mongoose
Mongoose module for singular application.
## Install
```bash
npm i singular-mongoose
```
## Usage
Usage example:
```javascript
const Singular = require('singular');
const app = new Singular({
config: {
mongoose: {
host: 'localhost',
port: 27017,
base: 'test',
},
},
});
app.module(require('singular-mongoose'));
app.inject('mongoose', (mongoose) => {
// ...
});
```
## License
MIT.