midrun-node
v0.0.53
Published
⚡ The modern framework for APIs
Downloads
47
Readme
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}`);
});