Skip to content

Cheesetouched/nodecloud-digitalocean-plugin

 
 

Repository files navigation

nodecloud-digitalocean-plugin

DigitalOcean plugin for nodecloud

🚀 Install

$ npm install nodecloud-digitalocean-plugin

✌️ How to setup

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.

  1. name : Provider name which nodecloud supports.
  2. 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.
  3. plugin : Library name which has to be installed before loading a provider.
  4. 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;

💻 Development

$ 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

About

🔧 NodeCloud DigitalOcean plugin

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%