Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.vscode
myapp
cmd.md
cmd.md
/generated/prisma
18 changes: 18 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,24 @@ uvicorn main:app --reload
- Server: http://localhost:3000
- Python Backend: http://localhost:8080


## MongoDB + Prisma (Important)

This project uses Prisma with MongoDB.

⚠️ MongoDB MUST be running as a replica set, even for local development.

Quick setup (Windows):

1. Stop MongoDB service
2. Start MongoDB with replication enabled:
mongod --replSet rs0
3. In another terminal:
rs.initiate()
4. Use connection string:
mongodb://127.0.0.1:27017/edulume?replicaSet=rs0


πŸ“– **For detailed setup instructions, see [INSTALLATION.md](INSTALLATION.md)**

---
Expand Down
4 changes: 4 additions & 0 deletions server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import sitemapRoutes from "./routes/sitemap.js";
import vaultRoutes from "./routes/vault.js";
import { setupSocketHandlers } from "./socket/socketHandlers.js";
import initRedis from "./utils/redis.js";
import labsRoutes from "./routes/labs.js";
import interviewsRouter from './routes/interviews.js';

BigInt.prototype.toJSON = function () {
return this.toString();
Expand Down Expand Up @@ -105,6 +107,8 @@ app.use("/api/feedback", feedbackRoutes);
app.use("/api/pdf-chat", pdfChatRoutes);
app.use("/api/vault", vaultRoutes);
app.use("/", sitemapRoutes);
app.use("/api/labs", labsRoutes);
app.use('/api/interviews', interviewsRouter);

// Setup Socket.IO handlers
setupSocketHandlers(io);
Expand Down
4 changes: 4 additions & 0 deletions server/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default {
testEnvironment: 'node',
transform: {},
};
Loading