• This project
    • Loading...
  • Sign in

엄성진 / Learn_In_Web

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • learn_in_web
  • src
  • index.ts
  • sungjin's avatar
    Start Project with File Runner · b7fefe5f
    b7fefe5f
    sungjin authored 2021-11-04 21:49:17 +0900
index.ts 362 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
const _PORT = 3000;

import * as express from "express";
import {Runner} from "./runner";

const app = express.default();

app.use(express.json());

/*RESTful API*/

app.post("/runcode", function (req, res) {
  var run = new Runner(req);
  run.run();
  res.send(run.output);
});



app.listen(_PORT, () => {
  console.log("server started at port " + _PORT);
});