GithubHelp home page GithubHelp logo

mbee-plugin-sandbox's Introduction

Sandbox Plugin

The Sandbox Plugin is designed to allow every user to have their own sandbox so that they can experiment with MBEE however they choose, without affecting other organizations or projects. When a user is created, a sandbox organization is created for that specific user and they can do whatever they desire with it. If and when that user is deleted, their sandbox organization (and any projects and elements in the organization) is deleted.

Installation

Installation of the sandbox plugin is very simple. To install the plugin, simply include the following bit of code in your running MBEE config in the server.plugins section:

{
  "plugins": {
    "enabled": true,
    "plugins": [{
      "name": "sandbox",
      "source": "https://github.com/lmco/mbee-plugin-sandbox.git",
      "title": "Sandbox"
    }],
    "sandbox": {
      "retroactive": true
    }
  }
 
}

NOTE: Ensure "enabled" is set to true so that plugins are installed and built upon restart of the server.

Running the Plugin

To run the plugin, simply restart the running instance of MBEE. The plugin code will be copied, built and will start along with the server.

Nothing needs to be done to manage the plugin. When a user is created in the system, a sandbox organization is created along with them. That user becomes an admin of that organization, and can edit that org and add projects and users.

If/When the user is deleted, the organization is automatically deleted, along with any projects stored in the org, and any elements in those projects.

Configuration Options

To change the default configuration options, visit the running MBEE config, and go to the server.plugins.sandbox section. If this section does not exist, feel free to add it.

Below are the supported config options, and a description of what they do.

  • retroactive (boolean)
    • If true, creates sandbox orgs for all existing users if they do not currently have one upon startup of the server.

Public Release Info

This code is part of the MBEE source code, and is thus approved for public release per PIRA #SSS201809050.

mbee-plugin-sandbox's People

Contributors

marnao avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.