feat: Add base files

This commit is contained in:
2025-04-16 16:04:34 +02:00
parent 96c2cb6a4f
commit a19f4f1aea
20 changed files with 3730 additions and 0 deletions

18
backend/db.js Normal file
View File

@@ -0,0 +1,18 @@
const mysql = require('mysql2');
const connection = mysql.createConnection({
host: 'db',
user: 'root',
password: 'root',
database: 'vulnapp',
});
connection.connect(err => {
if (err) {
console.error('DB connection failed:', err.stack);
return;
}
console.log('Connected to MySQL');
});
module.exports = connection;