From 65b6fd27feae02a92008f77692f74e4005acaae3 Mon Sep 17 00:00:00 2001 From: quericy Date: Tue, 29 Sep 2020 01:15:53 +0800 Subject: [PATCH] Create gateway.js --- gateway.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 gateway.js diff --git a/gateway.js b/gateway.js new file mode 100644 index 0000000..c296ae4 --- /dev/null +++ b/gateway.js @@ -0,0 +1,11 @@ +// gateway.js + +'use strict'; + +const gateway = require('@surgio/gateway'); + +(async () => { + const app = await gateway.bootstrapServer(); + await app.listen(3000, '0.0.0.0'); + console.log('> Your app is ready at http://0.0.0.0:3000'); +})();