This package has been deprecated

Author message:

Please use @metahkg/server

metahkg-server
TypeScript icon, indicating that this package has built-in type declarations

3.4.2 • Public • Published

Metahkg server

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

stable (master): metahkg.org

dev build (dev): dev.metahkg.org

React Nodejs Typescript

Gitlab Github License

DeepSource DeepSource Codacy Badge

Deploying

Docker

Docs

Manually

WARNING: This is NOT RECOMMENDED and might be OUTDATED!

For manual deployment, see DEPLOY.md.

OpenApi specification

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 || 3200}`);
    });
})();

quick start for dev

ensure you have .env in root and have docker installed.

docker-compose -f docker-compose-dev.yml up --build

Readme

Keywords

Package Sidebar

Install

npm i metahkg-server

Homepage

metahkg.org

Weekly Downloads

1

Version

3.4.2

License

AGPL-3.0-or-later

Unpacked Size

601 kB

Total Files

350

Last publish

Collaborators

  • wc-yat