Skip to content

Instantly share code, notes, and snippets.

@saurabhpati
Created March 4, 2019 15:05
Show Gist options
  • Save saurabhpati/91ab83f64151573597d21dd96c82c3c7 to your computer and use it in GitHub Desktop.
Save saurabhpati/91ab83f64151573597d21dd96c82c3c7 to your computer and use it in GitHub Desktop.
User Module
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { User } from './user.entity';
import { UserController } from './user.controller';
import { UserService } from './user.service';
@Module({
imports: [TypeOrmModule.forFeature([User])],
providers: [UserService],
controllers: [UserController]
})
export class UserModule {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment