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

media-manager

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

media-manager

### 📦 Dependencies

  • 1.1.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
increased by500%
Maintainers
1
Weekly downloads
 
Created
Source

media-manager

📦 Dependencies

  • MongoDB
  • express
  • spacebro

To run media-manager you need:

  • a spacebro server
  • a Mongo database

🌍 Installation

git clone https://github.com/soixantecircuits/media-manager.git
cd media-manager
yarn
yarn start

Note - you can only run one instance of media-manager per computer.

⚙ Settings

By default, media-manager loads settings/settings.default.json:

{
  "server": {
      "host" : "localhost",
      "port" : 8008
  },
  "folder": {
    "data": "/tmp/media-manager"
  },
  "defaultState": "public",
  "states": ["public", "private", "draft"],
  "service": {
    "spacebro": {
      "host" : "localhost",
      "port" : 8888,
      "channel": "media-stream",
      "client" : "media-manager",
      "inputMessage": "new-media",
      "outputMessage": "media-to-db"
    }
  }
}

You can copy this file to settings/settings.json, edit it, and it will be automatically loaded. Or load a custom one by adding the --settings option.
Example: yarn start -- -settings settings/settings.custom.json

spacebro describes the spacebro client configuration. See spacebro and spacebro-client. folder.data is the directory where all files will be copied.
defaultState is the state in which a media is at its creation.
states is an array of all possible states.

💬 Options

--settings: load a specific settings file (JSON).
--clean: if a file associated to a media in database cannot be found, it is deleted.

📖 Documentation

Media

FAQs

Package last updated on 04 Jul 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