Skip to content

Commit 4d6f0e4

Browse files
feat(chatbot): Initial structure of ChatbotAPI in Python
0 parents  commit 4d6f0e4

372 files changed

Lines changed: 34374 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/Readme

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<<<<<<< HEAD
2+
Status do Workflow
3+
4+
DevOps CI - Status
5+
Esse badge mostra o status do workflow de integração contínua (CI) do projeto. Sempre que houver alterações na branch main,
6+
o workflow é executado automaticamente para garantir que o projeto está funcionando corretamente.
7+
=======
8+
Status do Workflow ⚙️
9+
10+
DevOps CI - Status
11+
12+
Esse badge mostra o status do workflow de integração contínua (CI) do projeto. Sempre que houver alterações na branch main,
13+
o workflow é executado automaticamente para garantir que o projeto está funcionando corretamente.
14+
![DevOps CI - Status](https://github.com/joaocarpim/AMS_HoldCrypto/actions/workflows/meu-workflow.yml/badge.svg)
15+
>>>>>>> release/2.0.0

.github/workflows/dotnet.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: .NET Build and Test
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout código
16+
uses: actions/checkout@v3
17+
18+
- name: Configurar .NET
19+
uses: actions/setup-dotnet@v3
20+
with:
21+
dotnet-version: '9.0.x'
22+
23+
- name: Restaurar pacotes
24+
run: dotnet restore AMS_HoldCrypto.sln
25+
26+
- name: Build do projeto
27+
run: dotnet build AMS_HoldCrypto.sln --configuration Release --no-restore
28+
29+
- name: Testes (se houver)
30+
run: dotnet test AMS_HoldCrypto.sln --no-build --verbosity normal

.github/workflows/workflow.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Workflow DevOps - Projeto Corretora
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
mostrar-trabalho:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Exibir mensagem
14+
run: echo "Workflow executado com sucesso! DevOps presente no projeto."

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
bin/
2+
obj/
3+
4+
node_modules/

.vscode/launch.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "chrome",
9+
"request": "launch",
10+
"name": "Launch Chrome against localhost",
11+
"url": "http://localhost:8080",
12+
"webRoot": "${workspaceFolder}"
13+
}
14+
]
15+
}

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"CodeGPT.apiKey": "CodeGPT Plus Beta"
3+
}

AMS_HoldCrypto.sln

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
Microsoft Visual Studio Solution File, Format Version 12.00
2+
# Visual Studio Version 17
3+
VisualStudioVersion = 17.5.2.0
4+
MinimumVisualStudioVersion = 10.0.40219.1
5+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "backend", "backend", "{1AE8ACA6-933B-BF2A-3671-3E2EAC007D16}"
6+
EndProject
7+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "balanceApi", "backend\balanceApi\balanceApi.csproj", "{9C9DE681-38D8-7CF6-7886-ADF178E57CB4}"
8+
EndProject
9+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "userApi", "backend\userApi\userApi.csproj", "{2AC13B21-5271-3740-A127-CF1638393681}"
10+
EndProject
11+
Global
12+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
13+
Debug|Any CPU = Debug|Any CPU
14+
Release|Any CPU = Release|Any CPU
15+
EndGlobalSection
16+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
17+
{9C9DE681-38D8-7CF6-7886-ADF178E57CB4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
18+
{9C9DE681-38D8-7CF6-7886-ADF178E57CB4}.Debug|Any CPU.Build.0 = Debug|Any CPU
19+
{9C9DE681-38D8-7CF6-7886-ADF178E57CB4}.Release|Any CPU.ActiveCfg = Release|Any CPU
20+
{9C9DE681-38D8-7CF6-7886-ADF178E57CB4}.Release|Any CPU.Build.0 = Release|Any CPU
21+
{2AC13B21-5271-3740-A127-CF1638393681}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
22+
{2AC13B21-5271-3740-A127-CF1638393681}.Debug|Any CPU.Build.0 = Debug|Any CPU
23+
{2AC13B21-5271-3740-A127-CF1638393681}.Release|Any CPU.ActiveCfg = Release|Any CPU
24+
{2AC13B21-5271-3740-A127-CF1638393681}.Release|Any CPU.Build.0 = Release|Any CPU
25+
EndGlobalSection
26+
GlobalSection(SolutionProperties) = preSolution
27+
HideSolutionNode = FALSE
28+
EndGlobalSection
29+
GlobalSection(NestedProjects) = preSolution
30+
{9C9DE681-38D8-7CF6-7886-ADF178E57CB4} = {1AE8ACA6-933B-BF2A-3671-3E2EAC007D16}
31+
{2AC13B21-5271-3740-A127-CF1638393681} = {1AE8ACA6-933B-BF2A-3671-3E2EAC007D16}
32+
EndGlobalSection
33+
GlobalSection(ExtensibilityGlobals) = postSolution
34+
SolutionGuid = {DA1DD822-FC29-4BBA-B064-A52B9CDB9A94}
35+
EndGlobalSection
36+
EndGlobal

ChatbotAPI/Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Usar uma imagem base oficial do Python
2+
FROM python:3.10-slim
3+
4+
# Define o diretório de trabalho dentro do contêiner
5+
WORKDIR /app
6+
7+
# Copia o arquivo de dependências e instala
8+
COPY requirements.txt .
9+
RUN pip install --no-cache-dir -r requirements.txt
10+
11+
# Copia o código da aplicação e o frontend HTML para o contêiner
12+
COPY app.py .
13+
COPY index.html .
14+
15+
# Expor a porta 5000 (onde o Flask roda)
16+
EXPOSE 5000
17+
18+
# Comando para rodar a aplicação quando o contêiner inicia
19+
CMD ["python", "app.py"]

0 commit comments

Comments
 (0)