Metahkg server
This is the Metahkg backend api. See the metahkg repository.
stable (master): metahkg.org
dev build (dev): dev.metahkg.org
Deploying
Docker
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 || 3200}`);
});
})();