Skip to content

Latest commit

 

History

History
65 lines (43 loc) · 2.36 KB

README.md

File metadata and controls

65 lines (43 loc) · 2.36 KB

Metahkg server

This is the Metahkg backend api. See the metahkg repository.

stable (master): metahkg.org

dev build (dev): dev.metahkg.org

Nodejs Typescript

Gitlab Github License

DeepSource DeepSource Codacy Badge

Deploying

Docker

Docs

OpenApi specification

For archives, see openapi spec.

Api docs

See api in metahkg docs.

Use as module

Install

yarn add @metahkg/server

Usage

import MetahkgServer from "@metahkg/server";

(async () => {
    await client.connect();
    await setup();

    const app = await MetahkgServer();

    /**
     * The port can be modified in .env
     */
    await app.listen(3000, "0.0.0.0", (err: Error) => {
        if (err) console.log(err);
        console.log(`listening at port ${process.env.port || 3000}`);
    });
})();