This SDK provides an easy-to-use interface for managing applications, authentication, databases, and more on your Dokploy platform.
Up to date with Dokploy v0.8.2.
To install dokploy.js, run:
bun install dokploy.js
To use:
import Dokploy from 'dokploy.js'
const baseUrl = "http://dokploy-url.com/api"
const apiToken = "apiTokenHere-blahblahblah"
const dokploy = new Dokploy(baseUrl, apiToken)
try {
const response = await dokploy.user.all()
console.log(response)
const db = await dokploy.mongo.create(
"my-mongo-db",
"my-mongo-app",
"mongo:6",
"hKJ9MANs8hQ2ie40YVjL1",
"my description here",
"admin",
"passw0rd!"
)
console.log("db created, ", db)
} catch (error) {
console.error('Error:', error.message)
}
Contributing efforts can be made in the GitHub repository, found here.
Licensed under the MIT License.