First test commit
All checks were successful
Build and Deploy Nuxt / build (push) Successful in 12s

This commit is contained in:
2026-03-11 18:35:53 +01:00
commit 3e0cdf8cc4
46 changed files with 8902 additions and 0 deletions

14
backend/src/db.js Normal file
View File

@@ -0,0 +1,14 @@
const mongoose = require("mongoose");
const connectDB = async () => {
try {
await mongoose.connect(process.env.DB_URI);
console.log("MongoDB connected");
} catch (error) {
console.error("MongoDB connection error:", error);
process.exit(1);
}
};
module.exports = connectDB;