https://github.com/simoneb/messa
mongoose express scaffold with angular.js
https://github.com/simoneb/messa
Last synced: 4 months ago
JSON representation
mongoose express scaffold with angular.js
- Host: GitHub
- URL: https://github.com/simoneb/messa
- Owner: simoneb
- Created: 2015-07-20T22:53:52.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-04-13T15:55:52.000Z (about 9 years ago)
- Last Synced: 2025-01-31T07:19:44.492Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 176 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
messa - mongoose express scaffold with angular.js
====
messa is an ExpressJS app to scaffold a CRUD UI for your mongoose models built with angular.js
## Demo
You can see a live demo [here](https://messa-demo.herokuapp.com/) and its source code [here](https://github.com/simoneb/messa-demo)
## Installation
`npm i messa`
## Usage
messa is an ExpressJS application, as such it can either be used standalone or mounted into an existing application. If you have an existing application which uses mongoose you will most likely want to mount it there.
### Mounted
```js
app.use('/messa', messa(mongoose));
```
### Standalone
```js
messa(mongoose).listen(3000);
```
## How it works
messa inspects your mongoose models and automatically generates a UI to perform CRUD operations on them.
The UI is built with angular.js, angular-material and angular-ui-grid.
## API
`messa(mongoose[, options])`
*mongoose*: a mongoose instance, possibly configured with some models
*options*: a javascript object
- *options.title*: custom toolbar title
- *options.pageTitle*: custom page header title
*Returns*: an ExpressJS app that you can run or mount into another app
## Features
- supports most types of mongoose schemas
- client-side validation based on mongoose validators (where possible)
## Limitations
- limited support for Array schema types, except for arrays of nested schemas, which is well supported
Please do not use with production data!
## Built on top of these great open source projects
- ExpressJS
- mongoose
- angular.js
- angular-material
- angular-ui-grid