|
|
|
import { Module } from "@nestjs/common";
|
|
|
|
import { AppController } from "./app.controller";
|
|
|
|
import { AppService } from "./app.service";
|
|
|
|
import { ConfigModule } from "@nestjs/config";
|
|
|
|
import { SequelizeModule } from "@nestjs/sequelize";
|
|
|
|
import { databaseConfig } from "./config/database.config";
|
|
|
|
import { UsersModule } from './users/users.module';
|
|
|
|
import { ProductsModule } from './products/products.module';
|
|
|
|
import { CartModule } from './cart/cart.module';
|
|
|
|
import { WalletModule } from './wallet/wallet.module';
|
|
|
|
import { InvoiceModule } from './invoice/invoice.module';
|
|
|
|
import { AdminModule } from './admin/admin.module';
|
|
|
|
|
|
|
|
@Module({
|
|
|
|
imports: [
|
|
|
|
ConfigModule.forRoot({
|
|
|
|
isGlobal: true,
|
|
|
|
}),
|
|
|
|
SequelizeModule.forRoot(databaseConfig),
|
|
|
|
UsersModule,
|
|
|
|
ProductsModule,
|
|
|
|
CartModule,
|
|
|
|
WalletModule,
|
|
|
|
InvoiceModule,
|
|
|
|
AdminModule,
|
|
|
|
],
|
|
|
|
controllers: [AppController],
|
|
|
|
providers: [AppService],
|
|
|
|
})
|
|
|
|
export class AppModule {}
|