added discord container for renaming and role-management
This commit is contained in:
19
apps/discord-server/index.ts
Normal file
19
apps/discord-server/index.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import "dotenv/config";
|
||||
import express from "express";
|
||||
import { createServer } from "http";
|
||||
import router from "routes/router";
|
||||
import cookieParser from "cookie-parser";
|
||||
import cors from "cors";
|
||||
import "modules/chron";
|
||||
|
||||
const app = express();
|
||||
const server = createServer(app);
|
||||
|
||||
app.use(cors());
|
||||
app.use(express.json());
|
||||
app.use(cookieParser());
|
||||
app.use(router);
|
||||
|
||||
server.listen(process.env.DISCORD_SERVER_PORT, () => {
|
||||
console.log(`Server running on port ${process.env.DISCORD_SERVER_PORT}`);
|
||||
});
|
||||
Reference in New Issue
Block a user