init notification
This commit is contained in:
21
src/app.module.ts
Normal file
21
src/app.module.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import { Module } from "@nestjs/common";
|
||||
import { NotificationModule } from "./notifications/notification.mudule";
|
||||
import { SequelizeModule } from "@nestjs/sequelize";
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
SequelizeModule.forRoot({
|
||||
dialect: "mysql",
|
||||
host: "localhost",
|
||||
port: 3306,
|
||||
username: "root",
|
||||
password: "",
|
||||
database: "notification_db",
|
||||
autoLoadModels: true,
|
||||
synchronize: true,
|
||||
}),
|
||||
NotificationModule,
|
||||
],
|
||||
})
|
||||
export class AppModule {
|
||||
}
|
||||
Reference in New Issue
Block a user