Skip to content

Instantly share code, notes, and snippets.

@thedewpoint
Created April 19, 2022 01:38
Show Gist options
  • Save thedewpoint/3684b50d1e3d7bd77946d595fa1044e6 to your computer and use it in GitHub Desktop.
Save thedewpoint/3684b50d1e3d7bd77946d595fa1044e6 to your computer and use it in GitHub Desktop.
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