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

15 lines
426 B
TypeScript
Raw Normal View History

2023-04-16 20:00:55 +00:00
import { Module } from '@nestjs/common';
import { MongoModule } from 'nest-mongodb'
2023-04-17 16:01:05 +00:00
import { ApiModule } from './api/api.module';
import { CrawlerModule } from './crawler/crawler.module';
// import { DbModule } from './db/db.module';
2023-04-18 18:07:47 +00:00
import dotenv from 'dotenv';
dotenv.config();
2023-04-16 20:00:55 +00:00
@Module({
imports: [ApiModule, CrawlerModule, MongoModule.forRoot('mongodb://localhost', process.env.DB_NAME)]
2023-04-16 20:00:55 +00:00
})
export class AppModule { }