A minimal, working example of a Drumee server plugin. If you are adding services to Drumee, start by reading this repository — it is small enough to hold in your head.
Its front-end counterpart is sandbox-ui.
| Path | Role |
|---|---|
acl/sandbox.json |
Declares the callable services and the privilege each one requires |
service/index.js |
Implements them |
service/lib/ |
Supporting code |
schemas/tables/, schemas/procedures/ |
Database objects the plugin owns |
schemas/avatar.sql |
Example schema object |
The ACL file is the contract: nothing is reachable unless it is declared there.
A plugin runs inside a Drumee server runtime rather than on its own.
git clone https://github.com/drumee/sandbox-server.git
cd sandbox-server
npm install
npm run register-pluginThen restart the Drumee server so it picks up the new services. To take it out
again, run npm run remove-plugin.
npm run dev # development mode
npm run deploy # build and deployTo get a runtime to develop against, follow the getting-started guides.
@drumee/server-core and
@drumee/server-essentials.
See the org CONTRIBUTING guide. Questions: Discussions.
AGPL-3.0 — see LICENSE.