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;

16
backend/src/index.js Normal file
View File

@@ -0,0 +1,16 @@
const express = require("express");
require('dotenv').config();
const app = express();
const connectDB = require("./db");
// connect database
connectDB();
app.get("/", (req, res) => {
res.send("Hello from Proxmox container!");
});
app.listen(5000, () => {
console.log("Server running on port 5000");
});