You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
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';
|
|
|
|
|
|
|
|
@Module({
|
|
|
|
imports: [
|
|
|
|
ConfigModule.forRoot({
|
|
|
|
isGlobal: true,
|
|
|
|
}),
|
|
|
|
SequelizeModule.forRoot(databaseConfig),
|
|
|
|
UsersModule,
|
|
|
|
ProductsModule,
|
|
|
|
CartModule,
|
|
|
|
],
|
|
|
|
controllers: [AppController],
|
|
|
|
providers: [AppService],
|
|
|
|
})
|
|
|
|
export class AppModule {}
|