austinginder / captaincore-dispatch

πŸ”„ Dispatch server which handles communication to and from CaptainCore CLI.

Home Page:https://captaincore.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


CaptainCore Dispatch

CaptainCore Dispatch is a Golang web server part of the CaptainCore toolkit. It handles communication between the WordPress Plugin CaptainCore and CaptainCore CLI.

emoji-log

Warning

This project is under active development and not yet stable. Things may break without notice. Only proceed if your wanting to spend time on the project. Sign up to receive project update at captaincore.io.

Getting started

TO DO

Local development setup

You can run CaptainCore Dispatch locally for development or testing purposes. This requires the following.

  • Install CaptainCore CLI locally
  • Install CaptainCore on a WordPress site locally

Setup instructions

  • Clone the git repo.
  • Create config.json file with
{
    "tokens": [
        {
            "captain_id":"1",
            "token":"RANDOM_TOKEN_CHANGE_ME"
        },
     ],
    "host":"localhost:5826",
    "port":"5826",
    "ssl_mode":"development"
}
  • Use Go to compile and run the server.
go run captaincore-dispatch.go server --debug
  • Import freshly generated CA key certs/ca.crt into computer/browser.
  • Configure local WordPress site running CaptainCore with the token key used within Dispatch config.json. This allows

License

This is free software under the terms of MIT the license (check the LICENSE file included in this package).

About

πŸ”„ Dispatch server which handles communication to and from CaptainCore CLI.

https://captaincore.io

License:MIT License


Languages

Language:Go 100.0%