add orchestrator

This commit is contained in:
Ishaan Dey
2024-05-05 21:45:43 -07:00
parent 47ce5db223
commit 34a7fd7ab9
8 changed files with 2824 additions and 741 deletions

View File

@ -1,6 +1,7 @@
import fs from "fs"
import os from "os"
import path from "path"
import cors from "cors"
import express, { Express } from "express"
import dotenv from "dotenv"
import { createServer } from "http"
@ -29,7 +30,7 @@ dotenv.config()
const app: Express = express()
const port = process.env.PORT || 4000
// app.use(cors())
app.use(cors())
const httpServer = createServer(app)
const io = new Server(httpServer, {
cors: {