Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mongoose-manager

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongoose-manager

A generic admin interface for node.js applications that use mongoose.

  • 0.1.17
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

mongoose-manager

A generic admin interface for node.js applications that use mongoose.

Warning

This module is not mature and is not actively developed nor maintained anymore. Usage is not recommended. Check http://www.forestadmin.com/ for an instant, powerful and fully configurable admin interface.

Usage

Basic usage

var Admin = require('mongoose-manager').Admin;
var models = [
    {
        model: require('./models/Artist').Artist,
        label: function(artist){ return artist.name }
    },
    require('./models/Label').Label,
    require('./models/Record').Record
];
var options = {
    secret: 'a secret string to use for cookie encryption' // replace this by a specific string for your app
};
var admin = new Admin(models, options);

// an express app is now available in admin.app
admin.app.listen(8080, function(){
    console.log('Example app running on %s', 8080);
});

Adding extra menus

You can add your own entries to the index menu:

admin.extraMenu('The menu text', 'http://google.com');

Note

Thanks to @madhums for handing over the module name

FAQs

Package last updated on 02 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc