DigitalOcean plugin for nodecloud
$ npm install nodecloud-digitalocean-plugin
Get your DigitalOcean API token here
Make sure you have .nc.config
file in the project root and have nodecloud-core
installed.
Content of .nc.config
file is assumed as the following json structure.
It is an array of supported providers.
name
: Provider name which nodecloud supports.tag
: Name that you will use to load the given provider. It is for your reference in code. It can be anything that you may like.plugin
: Library name which has to be installed before loading a provider.configPath
: An object which contains a key called 'token' with your DigitalOcean token as the value
Config file can contain array of objects for all providers and all will be loaded.
Supported values for name
: aws, azure, alicloud, digitalocean, google
const nodeCloudDigitalOceanPlugin = require('nodecloud-digitalocean-plugin');
const providers = [
{
name: "digitalocean",
tag: "digitalocean",
plugin: nodeCloudDigitalOceanPlugin,
configPath: {
token: "YOUR TOKEN HERE"
}
}
];
module.exports = providers;
$ git clone https://github.com/cloudlibz/nodecloud-digitalocean-plugin
$ cd nodecloud-digitalocean-plugin
$ npm link
$ cd .. && mkdir nodecloud-dev && cd nodecloud-dev
$ npm link nodecloud-digitalocean-plugin
$ cd .. && git clone https://github.com/cloudliz/nodecloud
$ git clone https://github.com/cloudliz/nodecloud
$ cd nodecloud
$ npm link
$ cd nodecloud-dev
$ npm link nodecloud