Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 months 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 (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-02-11T18:23:58.000Z (almost 3 years ago)
- Last Synced: 2024-10-10T15:38:26.791Z (4 months ago)
- Topics: adonisjs, mongoose, nodejs-modules
- Language: JavaScript
- Size: 627 KB
- Stars: 62
- 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[![npm](https://img.shields.io/npm/v/adonis-mongoose-model.svg?style=flat-square)](https://www.npmjs.com/package/adonis-mongoose-model)
[![StyleCI](https://styleci.io/repos/114804179/shield?branch=dev)](https://styleci.io/repos/114804179)
[![Build Status](https://travis-ci.org/juampi92/adonis-mongoose-model.svg?branch=master&style=flat-square)](https://travis-ci.org/juampi92/adonis-mongoose-model)
[![npm](https://img.shields.io/npm/dm/adonis-mongoose-model.svg?style=flat-square)](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`