https://github.com/juampi92/adonis-mongoose-model
Mongoose models for Adonis framework.
https://github.com/juampi92/adonis-mongoose-model
adonisjs mongoose nodejs-modules
Last synced: about 1 year ago
JSON representation
Mongoose models for Adonis framework.
- Host: GitHub
- URL: https://github.com/juampi92/adonis-mongoose-model
- Owner: juampi92
- License: mit
- Created: 2017-12-19T19:38:47.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-02-11T18:23:58.000Z (over 4 years ago)
- Last Synced: 2025-03-25T16:23:37.675Z (over 1 year ago)
- Topics: adonisjs, mongoose, nodejs-modules
- Language: JavaScript
- Size: 627 KB
- Stars: 61
- Watchers: 4
- Forks: 17
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Adonis-Mongoose-Model
> Fully Mongoose-Model integration, with mongodb connection
[](https://www.npmjs.com/package/adonis-mongoose-model)
[](https://styleci.io/repos/114804179)
[](https://travis-ci.org/juampi92/adonis-mongoose-model)
[](https://www.npmjs.com/package/adonis-mongoose-model)
This package brings you a MongooseProvider that connects to the database, a Mongoose base Model, a mongoose serializer for AdonisAuth

## Features
1. Support for Mongoose model creation.
2. Strong BaseModel that's Hook compatible, indexable and easy es6 inheritance
3. Support for a Mongoose serializer.
4. Adonis command for creating mongoose models
## Installation
You can install the package from npm.
```bash
adonis install adonis-mongoose-model --yarn
```
Make sure to read [instructions.md](instructions.md) file.
## Adonis Target
This repo/branch is supposed to run on Adonis 4.x
## Node/OS Target
This repo/branch is supposed to run fine on all major OS platforms and targets `Node.js >=7.0`