Compare commits
No commits in common. "7f9cf79a21a977f3b1d83dc2a2c092a5b1caac34" and "ec8342b5e2a001616803633fe3d6dc0b13be4841" have entirely different histories.
7f9cf79a21
...
ec8342b5e2
@ -1,46 +0,0 @@
|
|||||||
# Multi-stage build for ASP.NET Core application
|
|
||||||
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
# Copy project files
|
|
||||||
COPY AISApp.csproj .
|
|
||||||
COPY . .
|
|
||||||
|
|
||||||
# Restore dependencies
|
|
||||||
RUN dotnet restore AISApp.csproj
|
|
||||||
|
|
||||||
# Build the application
|
|
||||||
RUN dotnet build AISApp.csproj -c Release -o /app/build
|
|
||||||
|
|
||||||
# Publish the application
|
|
||||||
RUN dotnet publish AISApp.csproj -c Release -o /app/publish
|
|
||||||
|
|
||||||
# Runtime stage
|
|
||||||
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS runtime
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
# Install curl for health checks
|
|
||||||
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
# Copy published application
|
|
||||||
COPY --from=build /app/publish .
|
|
||||||
|
|
||||||
# Copy prompt.txt file
|
|
||||||
COPY prompt.txt .
|
|
||||||
|
|
||||||
# Create directory for static files
|
|
||||||
RUN mkdir -p static
|
|
||||||
|
|
||||||
# Expose port
|
|
||||||
EXPOSE 80
|
|
||||||
|
|
||||||
# Set environment variables
|
|
||||||
ENV ASPNETCORE_URLS=http://+:80
|
|
||||||
ENV ASPNETCORE_ENVIRONMENT=Production
|
|
||||||
|
|
||||||
# Health check
|
|
||||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
|
|
||||||
CMD curl -f http://localhost/api/chat || exit 1
|
|
||||||
|
|
||||||
# Run the application
|
|
||||||
ENTRYPOINT ["dotnet", "AISApp.dll"]
|
|
||||||
10
TODO.md
10
TODO.md
@ -20,7 +20,7 @@ Integrate the ASP.NET chatbot service into the existing Node.js backend system t
|
|||||||
### 1.3 Create Chatbot Service Dockerfile
|
### 1.3 Create Chatbot Service Dockerfile
|
||||||
- **Status**: β
Completed
|
- **Status**: β
Completed
|
||||||
- **Description**: Create proper Dockerfile for the ASP.NET chatbot service
|
- **Description**: Create proper Dockerfile for the ASP.NET chatbot service
|
||||||
- **Files**: `AISApp/Dockerfile`
|
- **Files**: `tuna/tuna/Dockerfile`
|
||||||
- **Details**: Multi-stage build with proper .NET 9.0 runtime and configuration
|
- **Details**: Multi-stage build with proper .NET 9.0 runtime and configuration
|
||||||
|
|
||||||
## Phase 2: Backend Service Integration
|
## Phase 2: Backend Service Integration
|
||||||
@ -54,25 +54,25 @@ Integrate the ASP.NET chatbot service into the existing Node.js backend system t
|
|||||||
### 3.1 Add MySQL Database Support
|
### 3.1 Add MySQL Database Support
|
||||||
- **Status**: β
Completed
|
- **Status**: β
Completed
|
||||||
- **Description**: Replace SQLite with MySQL database connection in ASP.NET service
|
- **Description**: Replace SQLite with MySQL database connection in ASP.NET service
|
||||||
- **Files**: `AISApp/AISApp/AIS.cs`, `AISApp/AISApp/Program.cs`
|
- **Files**: `tuna/tuna/AISApp/AIS.cs`, `tuna/tuna/AISApp/Program.cs`
|
||||||
- **Details**: Add MySQL connection string and update database operations
|
- **Details**: Add MySQL connection string and update database operations
|
||||||
|
|
||||||
### 3.2 Add Interview Context Endpoints
|
### 3.2 Add Interview Context Endpoints
|
||||||
- **Status**: β
Completed
|
- **Status**: β
Completed
|
||||||
- **Description**: Create endpoints for interview initialization and context management
|
- **Description**: Create endpoints for interview initialization and context management
|
||||||
- **Files**: `AISApp/AISApp/Program.cs`
|
- **Files**: `tuna/tuna/AISApp/Program.cs`
|
||||||
- **Details**: Add endpoints for interview start, status, and completion
|
- **Details**: Add endpoints for interview start, status, and completion
|
||||||
|
|
||||||
### 3.3 Implement Conversation Sync
|
### 3.3 Implement Conversation Sync
|
||||||
- **Status**: β
Completed
|
- **Status**: β
Completed
|
||||||
- **Description**: Sync conversation data between ASP.NET service and MySQL database
|
- **Description**: Sync conversation data between ASP.NET service and MySQL database
|
||||||
- **Files**: `AISApp/AISApp/AIS.cs`
|
- **Files**: `tuna/tuna/AISApp/AIS.cs`
|
||||||
- **Details**: Update conversation persistence to use MySQL instead of SQLite
|
- **Details**: Update conversation persistence to use MySQL instead of SQLite
|
||||||
|
|
||||||
### 3.4 Add Interview-Specific Prompts
|
### 3.4 Add Interview-Specific Prompts
|
||||||
- **Status**: β
Completed
|
- **Status**: β
Completed
|
||||||
- **Description**: Modify system prompts based on job requirements and interview context
|
- **Description**: Modify system prompts based on job requirements and interview context
|
||||||
- **Files**: `AISApp/AISApp/prompt.txt`, `AISApp/AISApp/AIS.cs`
|
- **Files**: `tuna/tuna/AISApp/prompt.txt`, `tuna/tuna/AISApp/AIS.cs`
|
||||||
- **Details**: Dynamic prompt generation based on job details and interview stage
|
- **Details**: Dynamic prompt generation based on job details and interview stage
|
||||||
|
|
||||||
## Phase 4: Database Integration
|
## Phase 4: Database Integration
|
||||||
|
|||||||
@ -22,7 +22,7 @@ services:
|
|||||||
|
|
||||||
chatbot:
|
chatbot:
|
||||||
build:
|
build:
|
||||||
context: ../../AISApp
|
context: ../../tuna/tuna
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
image: candidat/chatbot:latest
|
image: candidat/chatbot:latest
|
||||||
container_name: backend-chatbot
|
container_name: backend-chatbot
|
||||||
|
|||||||
@ -1,24 +0,0 @@
|
|||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
|
||||||
# Visual Studio Version 17
|
|
||||||
VisualStudioVersion = 17.5.2.0
|
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AISApp", "AISApp\AISApp.csproj", "{1671248C-43AD-2D25-4F0F-918991BEF94A}"
|
|
||||||
EndProject
|
|
||||||
Global
|
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
|
||||||
Debug|Any CPU = Debug|Any CPU
|
|
||||||
Release|Any CPU = Release|Any CPU
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
|
||||||
{1671248C-43AD-2D25-4F0F-918991BEF94A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{1671248C-43AD-2D25-4F0F-918991BEF94A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{1671248C-43AD-2D25-4F0F-918991BEF94A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{1671248C-43AD-2D25-4F0F-918991BEF94A}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
|
||||||
HideSolutionNode = FALSE
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
|
||||||
SolutionGuid = {14FC4F28-B89B-49C6-BD21-D4B1F80AE49C}
|
|
||||||
EndGlobalSection
|
|
||||||
EndGlobal
|
|
||||||
@ -82,7 +82,7 @@ services:
|
|||||||
# Frontend Service
|
# Frontend Service
|
||||||
frontend:
|
frontend:
|
||||||
build:
|
build:
|
||||||
context: ./frontend
|
context: ./frontend/candidat-frontend
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
image: candidat/frontend:${APP_VERSION:-latest}
|
image: candidat/frontend:${APP_VERSION:-latest}
|
||||||
container_name: candidat-frontend
|
container_name: candidat-frontend
|
||||||
@ -93,7 +93,7 @@ services:
|
|||||||
- "${FRONTEND_PORT:-3000}:3000"
|
- "${FRONTEND_PORT:-3000}:3000"
|
||||||
volumes:
|
volumes:
|
||||||
# Development hot reloading (only if NODE_ENV=development)
|
# Development hot reloading (only if NODE_ENV=development)
|
||||||
- ./frontend/src:/app/src:ro
|
- ./frontend/candidat-frontend/src:/app/src:ro
|
||||||
depends_on:
|
depends_on:
|
||||||
backend:
|
backend:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
@ -116,7 +116,7 @@ services:
|
|||||||
# Chatbot Service
|
# Chatbot Service
|
||||||
chatbot:
|
chatbot:
|
||||||
build:
|
build:
|
||||||
context: ./AISApp
|
context: ./tuna/tuna
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
image: candidat/chatbot:${APP_VERSION:-latest}
|
image: candidat/chatbot:${APP_VERSION:-latest}
|
||||||
container_name: candidat-chatbot
|
container_name: candidat-chatbot
|
||||||
|
|||||||
@ -29,7 +29,7 @@ A stunning, responsive frontend built with Next.js 15, TypeScript, and Tailwind
|
|||||||
## ποΈ **Project Structure**
|
## ποΈ **Project Structure**
|
||||||
|
|
||||||
```
|
```
|
||||||
frontend/
|
frontend/candidat-frontend/
|
||||||
βββ src/
|
βββ src/
|
||||||
β βββ app/
|
β βββ app/
|
||||||
β β βββ page.tsx # Main landing page
|
β β βββ page.tsx # Main landing page
|
||||||
|
|||||||
Loadingβ¦
Reference in New Issue
Block a user