minor changes

This commit is contained in:
Bhavnoor Singh Saroya 2025-08-25 14:23:55 -07:00
parent 909b29dfb5
commit af2e220116
30 changed files with 598 additions and 350 deletions

View file

@ -7,7 +7,7 @@ const instructorRouter = require("./routes/InstructorRouter");
const studentRouter = require("./routes/StudentRouter");
// require('dotenv').config(); // prisma client already loads .env apparently, double check before deploying
const port = process.env.NODE_PORT; // Use env for port
const port = process.env.NODE_PORT || 3000; // Use env for port
console.log('NODE_PORT:', port);
const prisma = new PrismaClient();
@ -19,6 +19,7 @@ app.use("/student", studentRouter);
app.use("/admin", adminRouter);
app.use("/instructor", instructorRouter);
app.listen(port, () => {
console.log(`Server running at http://localhost:${port}`);
});
console.log(`Server running at http://localhost:${port}`);
// app.listen(port, '0.0.0.0');
app.listen(3000, '::'); // im terrible i know - Bhav