crawling-and-serving/src/app.module.ts

21 lines
458 B
TypeScript
Raw Normal View History

2023-04-16 20:00:55 +00:00
import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
2023-04-17 16:01:05 +00:00
import { ApiModule } from './api/api.module';
import { CrawlerModule } from './crawler/crawler.module';
const dotenv = require('dotenv');
dotenv.config();
2023-04-16 20:00:55 +00:00
@Module({
imports: [
MongooseModule.forRoot(process.env.DB_URI, {
useNewUrlParser: true,
useUnifiedTopology: true,
}),
ApiModule,
CrawlerModule
]
2023-04-16 20:00:55 +00:00
})
export class AppModule { }