Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 1.07 KB

README.md

File metadata and controls

49 lines (36 loc) · 1.07 KB

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.js

Usage

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.