Code Monkey home page Code Monkey logo

vigilant's People

Contributors

ryanriffle avatar

Watchers

 avatar  avatar

vigilant's Issues

Plugin Controller / Model complexity

The Plugin controller and model seem a little too complex. There should be a defined set of steps that should be taken to get a plugin installed and running and not have to skip fields like path or any other due to side effects that happen automatically each different way you can do it.

They should be built using sails.helpers to increase code reuse like some already are sails.helpers.pluginDetails().

My thought process on the what the flow of adding a plugin should be (again all in sails.helpers):

Adding Plugin

  • Provide single field for stating the status of the process below and whether the plugin is ready.
    • In order to keep it simple, each step should deny working if the the step before it hasn't been completed.
  • Provide endpoint to download plugin (Step doesn't have to download if it already exists on disk)
  • Provide endpoint to install plugin dependencies.
    • This already has a helper sails.helpers.npmInstall
  • Provide endpoint to update plugin based on package.json
    • This already has a helper sails.helpers.pluginDetails
  • Provide endpoint to load the plugin in the vigilant.PluginManager
  • Provide endpoint to unload the plugin from vigilant.PluginManager

Wrapper

  • Endpoint to do every step in succession, returning the error immediately if failed.
    • Possibly the POST /plugin route

Plugin Deletion

  • Provide endpoint for removing plugin from database but not disk
  • Provide endpoint for removing plugin from disk and database

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.