From ce0bfa55ad00e2b5b93d6ebefd4a1034fd1fb0c9 Mon Sep 17 00:00:00 2001 From: Giovanni Marcon Date: Fri, 30 Apr 2021 23:51:24 -0300 Subject: [PATCH] Adicionado Index, removido Arquivo --- Dia 64 - Node - Projeto Escola/conectarbd.js | 11 ----------- Dia 64 - Node - Projeto Escola/views/index.ejs | 6 +++++- 2 files changed, 5 insertions(+), 12 deletions(-) delete mode 100644 Dia 64 - Node - Projeto Escola/conectarbd.js 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