1 | var argv = require("minimist")(process.argv.slice(2));
|
2 | import appSync from "../src/main";
|
3 |
|
4 |
|
5 | // Initialize the module.
|
6 | appSync({
|
7 | token: process.env.GITHUB_TOKEN,
|
8 | rabbitMQ: process.env.RABBIT_MQ,
|
9 | manifest: "philcockfield/app-sync/example/manifest.yml:devel"
|
10 | })
|
11 | .then(api => {
|
12 |
|
13 | // Start the gateway server.
|
14 | api.start({ port: argv.port })
|
15 | .catch(err => console.error("Error while starting:", err));
|
16 |
|
17 | });
|