remove mongoose

This commit is contained in:
Nikola Petrov 2024-07-16 22:24:55 +02:00
parent 12b9e62f8f
commit 78d5e7507f
2 changed files with 0 additions and 9 deletions

8
app.ts
View File

@ -5,14 +5,6 @@ import morgan from 'morgan'
const hostname = '127.0.0.1';
const httpPort = 4080;
var mongoose = require('mongoose');
var mongoDB = "mongodb://127.0.0.1/my_database";
mongoose.connect(mongoDB);
mongoose.set('strictQuery', false);
mongoose.Promise = global.Promise;
var db = mongoose.connection;
db.on('error', console.error.bind(console, 'MongoDB connection error:'));
const app = express();
app.set('views', path.join(__dirname, 'views'));

View File

@ -11,7 +11,6 @@
"@types/morgan": "^1.9.9",
"express": "^4.18.2",
"hbs": "^4.2.0",
"mongoose": "^7.5.2",
"morgan": "~1.9.1",
"mysql2": "^3.10.3"
}