Skip to content

Commit

Permalink
feat: Add ProjectBuilderModule and ProjectBuilderService
Browse files Browse the repository at this point in the history
This commit adds the `ProjectBuilderModule` and `ProjectBuilderService` to the backend codebase. The `ProjectBuilderModule` is responsible for importing the necessary dependencies and providing the `ProjectBuilderService` as a provider. The `ProjectBuilderService` contains the `createProject` method for creating a new project.
  • Loading branch information
Sma1lboy committed Nov 8, 2024
1 parent b9135a8 commit e257196
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
12 changes: 12 additions & 0 deletions backend/src/build-system/project-builder.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { HttpModule } from '@nestjs/axios';
import { ChatProxyService } from 'src/chat/chat.service';
import { ProjectBuilderService } from './project-builder.service';

@Module({
imports: [HttpModule],
providers: [ProjectBuilderService, ChatProxyService],
exports: [ProjectBuilderService],
})
export class ProjectBuilderModule {}
16 changes: 16 additions & 0 deletions backend/src/build-system/project-builder.service.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { Injectable, Logger } from '@nestjs/common';
import { ChatProxyService } from 'src/chat/chat.service';

@Injectable()
export class ProjectBuilderService {
private readonly logger = new Logger(ProjectBuilderService.name);

constructor(private chatProxyService: ChatProxyService) {}

async createProject(input: {
name: string;
projectDescription: string;
}): Promise<void> {
this.logger.log(`Creating project: ${input.name}`);
}
}

0 comments on commit e257196

Please sign in to comment.