dokploy.js
v1.0.2
Published
This SDK provides an easy-to-use interface for managing applications, authentication, databases, and more on your Dokploy platform.
Readme
dokploy.js
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.
Installation
To install dokploy.js, run:
bun install dokploy.jsUsage
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
Contributing efforts can be made in the GitHub repository, found here.
License
Licensed under the MIT License.
