midrun-node

0.0.53 • Public • Published

Midrun server toolkit

Install this as a local dependency on your server. Make sure to avoid publishing it publicly, as per your license.

This package contains the NodeJs middlewares to create your Midrun API.

Please check your API Dashboard for detail usage.

https://mid.run/

Example

npm i midrun-node
const express = require("express");
const midrun = require("midrun-node");

const app = express();
const port = process.env.PORT || 3000;

const spec = require("./midrun.spec.json");
const routes = require("./routes");

app.use("/", midrun.router(spec, [routes]));

app.listen(port, () => {
  console.log(`Midrun app listening on port ${port}`);
});

Readme

Keywords

Package Sidebar

Install

npm i midrun-node

Weekly Downloads

1

Version

0.0.53

License

c

Unpacked Size

94.2 kB

Total Files

9

Last publish

Collaborators

  • midrun