0.5.0 • Published 11 months ago

anatomic-restana v0.5.0

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

anatomic-restana

An anatomic component for restana.

tl;dr

const anatomic = require("anatomic");
const { app, server } = require("anatomic-restana");

const router = {
  start({ app }) {
    app.get("*", (req, res) => res.send("Hello!"))
  }
};

const system = anatomic()
  .add('app', app())
  .add('server', server()).dependsOn("app", "config", "router")
  .add("router", router).dependsOn("app")
  .configure({ server: { port: 8080 } });

system.start();

And then do

curl http://localhost:8080/pizza
0.3.0

11 months ago

0.5.0

11 months ago

0.4.0

11 months ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago