Skip to main content

Server Functions

compile

compile(options: CompileOptions): Promise<void>

Compiles a GoatDB application into a standalone executable.

This function performs the following steps:

  1. Bundles client-side code (JS/TS/TSX) into a single JavaScript file
  2. Processes static assets (HTML, CSS, images, etc.)
  3. Generates build information
  4. Compiles the server entry point into a native executable for the target platform

startDebugServer

startDebugServer(options: DebugServerOptions<US>): Promise<never>

Starts a local debug server. The debug server implements a live reload that automatically transpiles TypeScript and JSX using ESBuild.

staticAssetsFromJS

staticAssetsFromJS(encodedAssets: ReadonlyJSONObject): StaticAssets