# siracha

> An admin middleware for mongoose and express.

Latest version **0.0.0** (published 2015-10-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install siracha
pnpm add siracha
yarn add siracha
bun add siracha
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.0 |
| Published | 2015-10-21 |
| First published | 2015-10-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+16 in 2 direct dependencies) |
| Install scripts | no |
| Maintainers | hustonhedinger |

## Links

- npm: https://www.npmjs.com/package/siracha
- npm.io page: https://npm.io/package/siracha

## Dependencies (4)

- [jade](https://npm.io/package/jade.md) ^1.11.0
- [lodash](https://npm.io/package/lodash.md) ^3.10.1
- [express](https://npm.io/package/express.md) ^4.13.3
- [mongoose](https://npm.io/package/mongoose.md) ^4.1.12

## Recent versions

- 0.0.0 (latest) — 2015-10-21

## README

# Siracha
An admin Express app for Mongoose models.

Siracha is an Express app that can be mounted to any url in your app.  The admin site's routes and editing interface is generated dynamically based on your Mongoose Models.  Options are available to control the look and feel of the site.

## Quick Start
...
## Options
Options can be set globally through the options object passed to admin, or on individual Mongoose Schemas.

Globally:

```
app.use('/admin', admin(models, {...}));
``` 

Schema:

```
var UserSchema = new Schema({
  firstName: {
    type: String,
    default: ''
  },
  lastName: {
    type: String,
    default: ''
  },
  email: {
    type: String,
    default: '',
    unique: true
  },
  hashed_password: {
    type: String,
    default: '',
    admin: false
    }
});
```

### Global options

**username** *default - 'admin'*    
User name used to access admin backend. 


```
    var defaults = {
        
        username: 'admin', // default login username
        password: 'admin', // default login password
        passport: false,   // passport not used 
        hideFields: ['_id', '__v']
    };

```
## Examples

---
_Source: https://npm.io/package/siracha · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
