diff --git a/be/algo-with-me-docker/.gitignore b/be/algo-with-me-docker/.gitignore index 3681781..62d1323 100644 --- a/be/algo-with-me-docker/.gitignore +++ b/be/algo-with-me-docker/.gitignore @@ -90,6 +90,7 @@ out # Nuxt.js build / generate output .nuxt +dist # Gatsby files .cache/ diff --git a/be/algo-with-me-docker/dist/app.d.ts b/be/algo-with-me-docker/dist/app.d.ts deleted file mode 100755 index cb0ff5c..0000000 --- a/be/algo-with-me-docker/dist/app.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/be/algo-with-me-docker/dist/app.js b/be/algo-with-me-docker/dist/app.js deleted file mode 100755 index e51c654..0000000 --- a/be/algo-with-me-docker/dist/app.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const express_1 = __importDefault(require("express")); -const node_child_process_1 = __importDefault(require("node:child_process")); -const app = (0, express_1.default)(); -const PORT = 5000; -const TIMEOUT_IN_MILLI = 10000; -app.post('/:competitionId/:userId/:problemId/:testcaseId', (req, res) => { - const { competitionId, userId, problemId, testcaseId } = req.params; - const responseJson = { result: '', competitionId, userId, problemId }; - const command = `/algo-with-me/node-sh/run.sh ${competitionId} ${userId} ${problemId} ${testcaseId}`; - try { - node_child_process_1.default.execSync(command, { timeout: TIMEOUT_IN_MILLI }); - responseJson.result = 'SUCCESS'; - } - catch (error) { - responseJson.result = error.code === 'ETIMEDOUT' ? 'TIMEOUT' : error.code; - } - res.send(JSON.stringify(responseJson)); -}); -app.listen(PORT, () => { - console.log(`[algo-with-me-docker] listening at port ${PORT}`); -}); -//# sourceMappingURL=app.js.map \ No newline at end of file diff --git a/be/algo-with-me-docker/dist/app.js.map b/be/algo-with-me-docker/dist/app.js.map deleted file mode 100755 index ea44e22..0000000 --- a/be/algo-with-me-docker/dist/app.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"app.js","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":";;;;;AAAA,sDAA8B;AAE9B,4EAA+C;AAE/C,MAAM,GAAG,GAAG,IAAA,iBAAO,GAAE,CAAC;AACtB,MAAM,IAAI,GAAG,IAAI,CAAC;AAClB,MAAM,gBAAgB,GAAG,KAAM,CAAC;AAEhC,GAAG,CAAC,IAAI,CAAC,gDAAgD,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;IACtE,MAAM,EAAC,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAC,GAAG,GAAG,CAAC,MAAM,CAAC;IAIlE,MAAM,YAAY,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;IACtE,MAAM,OAAO,GAAG,gCAAgC,aAAa,IAAI,MAAM,IAAI,SAAS,IAAI,UAAU,EAAE,CAAC;IACrG,IAAI;QACF,4BAAa,CAAC,QAAQ,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE,CAAC,CAAC;QAC/D,YAAY,CAAC,MAAM,GAAG,SAAS,CAAC;KACjC;IAAC,OAAO,KAAK,EAAE;QACd,YAAY,CAAC,MAAM,GAAG,KAAK,CAAC,IAAI,KAAK,WAAW,CAAA,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC;KAC1E;IAED,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC;AACzC,CAAC,CAAC,CAAA;AAEF,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE;IACpB,OAAO,CAAC,GAAG,CAAC,2CAA2C,IAAI,EAAE,CAAC,CAAC;AACjE,CAAC,CAAC,CAAA"} \ No newline at end of file