@quasarbright/projection
Version:
A static site generator that creates a beautiful, interactive gallery to showcase your coding projects. Features search, filtering, tags, responsive design, and an admin UI.
50 lines • 1.31 kB
TypeScript
/**
* Admin server for managing project data through a web interface
*/
import { Express } from 'express';
import { AdminServerConfig } from './types';
/**
* Admin server class that provides a web interface for managing projects
*/
export declare class AdminServer {
private app;
private config;
private server;
private fileManager;
private imageManager;
private configFileManager;
private configLoader;
private connections;
private upload;
constructor(config: AdminServerConfig);
/**
* Set up Express middleware
*/
private setupMiddleware;
/**
* Set up Express routes
*/
private setupRoutes;
/**
* Start the admin server
* @returns The actual port the server is listening on
*/
start(): Promise<number>;
/**
* Stop the admin server gracefully
*/
stop(): Promise<void>;
/**
* Get the Express app instance (useful for testing)
*/
getApp(): Express;
}
/**
* Create and start an admin server with the given configuration
* @returns Object containing the server instance and the actual port it's running on
*/
export declare function startAdminServer(config: AdminServerConfig): Promise<{
server: AdminServer;
port: number;
}>;
//# sourceMappingURL=index.d.ts.map