Commit inicial

This commit is contained in:
2025-05-13 14:28:19 -04:00
commit 3d579f5e01
15 changed files with 1558 additions and 0 deletions

13
server/config/db.js Normal file
View File

@@ -0,0 +1,13 @@
const mongoose = require("mongoose");
const connectDB = async () => {
try {
await mongoose.connect(process.env.MONGODB_URI || 'mongodb://localhost:27017/meubanco');
console.log("MongoDB conectado de forma maravilhosa :)");
} catch (error) {
console.error(error.message)
process.exit(1);
}
}
module.exports = connectDB;