change to monorepo

This commit is contained in:
rubikscraft
2022-02-21 23:26:40 +01:00
parent eee3ce9e9f
commit 9bb2274366
37 changed files with 399 additions and 398 deletions

26
backend/src/app.module.ts Normal file
View File

@@ -0,0 +1,26 @@
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { AuthModule } from './routes/auth/auth.module';
import { UserEntity } from './collections/userdb/user.entity';
import { ImageModule } from './routes/image/imageroute.module';
import Config from './env';
import { ImageEntity } from './collections/imagedb/image.entity';
@Module({
imports: [
TypeOrmModule.forRoot({
type: 'postgres',
host: Config.database.host,
port: Config.database.port,
username: Config.database.username,
password: Config.database.password,
database: Config.database.database,
synchronize: true,
entities: [UserEntity, ImageEntity],
}),
AuthModule,
ImageModule,
],
})
export class AppModule {}