Initial Code Commit

This commit is contained in:
2025-12-25 07:23:24 +00:00
commit 920f892ca7
56 changed files with 5043 additions and 0 deletions

23
server/server.js Normal file
View File

@@ -0,0 +1,23 @@
import { handler } from '../build/handler.js';
import dotenv from 'dotenv';
import http from 'http';
import express from 'express';
import cors from 'cors';
import { connectDB } from './db.js';
dotenv.config();
const app = express();
const server = http.Server(app);
app.use(cors());
// Connect to Database
connectDB();
app.use(handler);
const PORT = process.env.PORT || 3000;
server.listen(PORT, () => {
console.log('listening on port http://localhost:' + PORT);
});