Browse Source

feat: Connect to MongoDB

Co-authored-by: Iro Athina Valagouti <iro_valagouti@yahoo.gr>
master
Konstantinos Kamaropoulos 5 years ago
parent
commit
620b5af16b
  1. 9
      src/app.module.ts

9
src/app.module.ts

@ -2,10 +2,15 @@ import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { LogsController } from './logs/logs.controller';
import { LogsService } from './logs/logs.service';
import { LogsModule } from './logs/logs.module';
import { MongooseModule } from '@nestjs/mongoose';
@Module({
imports: [],
imports: [MongooseModule.forRoot(
"mongodb://localhost/IoT"
), LogsModule],
controllers: [AppController, LogsController],
providers: [AppService],
providers: [AppService, LogsService],
})
export class AppModule {}

Loading…
Cancel
Save