Skip to content

quiint/dokploy.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published