diff --git a/Dia 64 - Node - Projeto Escola/conectarbd.js b/Dia 64 - Node - Projeto Escola/conectarbd.js deleted file mode 100644 index fac0372..0000000 --- a/Dia 64 - Node - Projeto Escola/conectarbd.js +++ /dev/null @@ -1,11 +0,0 @@ -const mongoose = require("mongoose"); - -const LINKDB = "mongodb+srv://admin:admin@cluster0.j5g4e.mongodb.net/escola2?retryWrites=true&w=majority" - -async function conectarDB(){ - await mongoose.connect(LINKDB, { useNewUrlParser: true, useUnifiedTopology: true }); - console.log("DB conectada") - return client.db("escola2") -} - -module.exports = conectarDB() \ No newline at end of file diff --git a/Dia 64 - Node - Projeto Escola/views/index.ejs b/Dia 64 - Node - Projeto Escola/views/index.ejs index 9efa6c2..c1a51ae 100644 --- a/Dia 64 - Node - Projeto Escola/views/index.ejs +++ b/Dia 64 - Node - Projeto Escola/views/index.ejs @@ -1,5 +1,9 @@ <%- include('head'); -%> -

Index

+
+
+

Sistema de Controle

+
+
<%- include('foot'); -%> \ No newline at end of file