-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add ProjectBuilderModule and ProjectBuilderService
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
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}`); | ||
} | ||
} |