programatically spinup or destroy a digital ocean droplet.

Overview

digital-ocean-on-demand-droplet

programatically spinup or destroy a digital ocean droplet.

How it works

This project uses the Digital Ocean API to create and delete droplets. You can also use it to backup and restore the server state, check this Discordjs Example

Getting started

To get started, first copy the .local.env file to .env and provide your digital ocean API token.

DO_TOKEN=YourDigitalOceanAPIToken

Set up the name and info of your droplet in the config.ts file. Default config:

const config = {
  droplet_name: "my-droplet",
  snapshot_name: "my-snapshot",
  ssh_keys: [],
}

droplet_name is the name given to the droplet when it is created or deleted. snapshot_name is the name of the snapsho that will be used to create the droplet. and ssh_keys is the list of ssh_keys that can access the droplet. Note that this refers to the dogital ocean fingerprint of the ssh keys, not the keys themselves, the fingerprints should look smoething like this: 3b:16:bf:e4:8b:00:8b:b8:59:8c:a9:d3:f0:19:45:fa

Keep in mind that there is no entry file to this project, it only provides functions you can use and build upon freely (see examples), once you have your use-case and program ready, you can build and run it using npm:

npm install
npm run build
npm run dev

or yarn:

yarn
yarn build
yarn dev
You might also like...

Ossama Mehmood (ossamamehmood.me) 🚀 Digital Creator / 🎗️ Graphic Designer / 🔮 User Interface (UI) & Experience (UX)

Ossama Mehmood 샘 (ossamamehmood.me) Greetings..! I'm Ossama Mehmood DIGITAL CREATOR OSSAMAMEHMOOD Home About me Skills Resume Testimonials Portfolio C

Jun 17, 2022

Projeto de um relógio digital utilizando HTML, CSS e Javascript.

Link da aplicação online: https://filipelimavaz-relogiodigital.netlify.app/ Projeto de um relógio digital utilizando HTML, CSS e Javascript Obrigado a

Aug 16, 2022

More than a Password Protection and Management tool, it secures all your valuable digital assets in your own vault

ZeroPass Client ZeroPass is more than a Password Protection and Management tool, it secures all your valuable digital assets in your own vault, includ

Aug 22, 2022

This is a web app to add your books in a digital shelf

This is a web app to add your books in a digital shelf

This is a web app to add your books in a digital shelf. This app is built with Javascript. A local storage option is added with this project, so that a user can store data in this is web app.

Sep 3, 2022

The Digital Library is a webapp that allows the user to: Display a list of books

The Digital Library is a webapp that allows the user to: Display a list of books. Add a new book. Remove a selected book.It has been developed using React Redux and tested using Jest.

Sep 5, 2022

This is a web app to organize your tasks in a digital shelf. This app is built with JavaScript

This is a web app to organize your tasks in a digital shelf. This app is built with JavaScript

To Do list This is a web app to orgaise your tasks in a digital shelf. This app is built with Javascript. url : https://gloireirenge.github.io/ToDoLis

Sep 3, 2022

A library that helps you write a static dropdown menu that follows the digital accessibility recommendations.

JSPanel A library that helps you write a static dropdown menu, a panel, that follows the digital accessibility recommendations. Get started First of a

Apr 29, 2021

This Repo Contains projects that demonstrate some concepts / algorithms / implemetation in some form of digital visualisation

This Repo Contains projects that demonstrate some concepts / algorithms / implemetation in some form of digital visualisation

Hacktoberfest 2022 OPEN FIRST Pull Request - GET STARTED WITH OPENSOURCE AND WIN SOME AWWSOME SWAGS 🎉 Contributors of Hacktoberfest 2022 This project

Nov 7, 2022

iX is a design system for designers and developers, to consistently create the perfect digital experience for industrial software products.

Siemens Industrial Experience (iX) monorepo iX is an open source design system for designers and developers, to consistently create the perfect digita

Dec 26, 2022
Owner
sahal-alzubair
Genuinely Curious
sahal-alzubair
Hacktoberfest is Digital ocean's annual event that encourages people to contribute to open source throughout October.

Hactoberfest 2022 For contributions to web-based projects for Hacktoberfest 2022, please use this public repository. This is React application make su

GDSC AIT Pune 5 Oct 10, 2022
Digital Identifier is a secure, decentralized, anonymous and tampered proof way of maintaining and verifying all essential identity-based documents to create a unique digital identity of a person.

Digital Identifier ?? To design and develop a secure, decentralized, anonymous and tampered proof way of maintaining and verifying all essential ident

Mukul Kolpe 4 Dec 17, 2022
API para Ocean AR Hackathon por innovación virtual.

Ocean-AR-Backend API para Ocean AR Hackathon por innovación virtual. Dependencies Dependencies Installation npm i express cors jsonwebtoken sequelize

Luis Armando Prado 3 May 14, 2022
Custom touch bar or digital macropad app for GNU/Linux 🐧 using an Android device 📱

?? Boar ??️ Custom touch bar or digital macropad app for GNU/Linux ?? using an Android device ?? Those apps allow creating a keyboard with custom keys

Fabián Velosa 0 Oct 29, 2022
Portfolio for Intro to Photography/Digital Media Production

This is a Next.js project bootstrapped with create-next-app. Getting Started First, run the development server: npm run dev # or yarn dev Open http://

Benjamin Smith 4 May 26, 2022
A string of four operations of the library, can solve the js digital calculation accuracy of scientific notation and formatting problems, support for thousands of decimal point formatting output operations

A string of four operations of the library, can solve the js digital calculation accuracy of scientific notation and formatting problems, support for thousands of decimal point formatting output operations

null 10 Apr 6, 2022
I'm trying to create simple program for adding the digital signature to a pdf file with self-signed certificate. I use node-signpdf and pdf-lib library.

pdf-digital-signature-with-node-signpdf-ejs I'm trying to create simple program for adding the digital signature to a pdf file with self-signed certif

null 5 Dec 25, 2022
Free Obisidian Publish alternative, for publishing your digital garden.

What is MindStone? MindStone is a free open-source alternative solution to Obsidian Publish Here how it look like once published, checkout demo versio

Tuan Cao 297 Dec 30, 2022
A second course in programming aesthetically-inclined projects for Digital Media undergraduates; Building Interactive Systems

EECS_1720 commits made while instructing EECS 1720 - Building Interactive Systems (winter 2022) (course @York University, Canada) what's new Last Clas

Robots Make Art Too 13 Mar 25, 2022
Penjelasan konsep kartu ujian digital yang bisa dibaca oleh manusia dan komputer (khususnya telepon genggam)

Konsep Kartu Ujian Digital Ini adalah penjelasan atas konsep kartu ujian digital yang dapat memudahkan siswa tanpa perlu repot memasukkan NPSN (Nomor

Ezra Khairan Permana 4 May 28, 2022