Created
April 19, 2022 01:38
-
-
Save thedewpoint/3684b50d1e3d7bd77946d595fa1044e6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Module } from '@nestjs/common'; | |
import { AppController } from './app.controller'; | |
import { AppService } from './app.service'; | |
import { UsersModule } from './users/users.module'; | |
import { PlansModule } from './plans/plans.module'; | |
import { SubscriptionsModule } from './subscriptions/subscriptions.module'; | |
import { TypeOrmModule } from '@nestjs/typeorm'; | |
@Module({ | |
imports: [ | |
UsersModule, | |
PlansModule, | |
SubscriptionsModule, | |
TypeOrmModule.forRoot({ | |
type: 'mongodb', | |
host: 'localhost', | |
port: 27017, | |
database: 'subscriptions', | |
autoLoadEntities: true, | |
synchronize: true, | |
}), | |
], | |
controllers: [AppController], | |
providers: [AppService], | |
}) | |
export class AppModule {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment