Skip to content

Commit 3cfccbe

Browse files
2 parents e7f99e1 + d9eb477 commit 3cfccbe

7 files changed

Lines changed: 281 additions & 10 deletions

File tree

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Build and deploy Clientes.API to Azure Web App
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'src/backend/Clientes.API/**'
9+
workflow_dispatch:
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up .NET Core
21+
uses: actions/setup-dotnet@v4
22+
with:
23+
dotnet-version: '8.x'
24+
25+
- name: Build
26+
run: dotnet build src/backend/Clientes.API/Clientes.API.csproj --configuration Release
27+
28+
- name: Publish
29+
run: dotnet publish src/backend/Clientes.API/Clientes.API.csproj -c Release -o ${{env.DOTNET_ROOT}}/myapp
30+
31+
- name: Zip artifact
32+
run: cd ${{env.DOTNET_ROOT}} && zip -r myapp.zip myapp
33+
34+
- name: Upload artifact
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: clientes-app
38+
path: ${{env.DOTNET_ROOT}}/myapp.zip
39+
40+
deploy:
41+
runs-on: ubuntu-latest
42+
needs: build
43+
permissions:
44+
id-token: write
45+
contents: read
46+
47+
steps:
48+
- name: Download artifact
49+
uses: actions/download-artifact@v4
50+
with:
51+
name: clientes-app
52+
path: ./artifact
53+
54+
- name: Login to Azure
55+
uses: azure/login@v2
56+
with:
57+
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_53A764BA120245DAA629D6794EAF9C22 }}
58+
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_39CBE0C302F2432EABACBFABADBBD12F }}
59+
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_436374D41D6C44689EDBFDE45E3572D7 }}
60+
61+
- name: Deploy to Azure Web App
62+
uses: azure/webapps-deploy@v3
63+
with:
64+
app-name: 'Clientes'
65+
slot-name: 'Production'
66+
package: ./artifact/myapp.zip
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Build and deploy Emprestimos.API to Azure Web App
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'src/backend/Emprestimos.API/**'
9+
workflow_dispatch:
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up .NET Core
21+
uses: actions/setup-dotnet@v4
22+
with:
23+
dotnet-version: '8.x'
24+
25+
- name: Build
26+
run: dotnet build src/backend/Emprestimos.API/Emprestimos.API.csproj --configuration Release
27+
28+
- name: Publish
29+
run: dotnet publish src/backend/Emprestimos.API/Emprestimos.API.csproj -c Release -o ${{env.DOTNET_ROOT}}/myapp
30+
31+
- name: Zip artifact
32+
run: cd ${{env.DOTNET_ROOT}} && zip -r myapp.zip myapp
33+
34+
- name: Upload artifact
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: emprestimos-app
38+
path: ${{env.DOTNET_ROOT}}/myapp.zip
39+
40+
deploy:
41+
runs-on: ubuntu-latest
42+
needs: build
43+
permissions:
44+
id-token: write
45+
contents: read
46+
47+
steps:
48+
- name: Download artifact
49+
uses: actions/download-artifact@v4
50+
with:
51+
name: emprestimos-app
52+
path: ./artifact
53+
54+
- name: Login to Azure
55+
uses: azure/login@v2
56+
with:
57+
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_53A764BA120245DAA629D6794EAF9C22 }}
58+
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_39CBE0C302F2432EABACBFABADBBD12F }}
59+
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_436374D41D6C44689EDBFDE45E3572D7 }}
60+
61+
- name: Deploy to Azure Web App
62+
uses: azure/webapps-deploy@v3
63+
with:
64+
app-name: 'Emprestimos'
65+
slot-name: 'Production'
66+
package: ./artifact/myapp.zip
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Build and deploy Reports.API to Azure Web App
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'src/backend/Reports.API/**'
9+
workflow_dispatch:
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up .NET Core
21+
uses: actions/setup-dotnet@v4
22+
with:
23+
dotnet-version: '8.x'
24+
25+
- name: Build
26+
run: dotnet build src/backend/Reports.API/Reports.API.csproj --configuration Release
27+
28+
- name: Publish
29+
run: dotnet publish src/backend/Reports.API/Reports.API.csproj -c Release -o ${{env.DOTNET_ROOT}}/myapp
30+
31+
- name: Zip artifact
32+
run: cd ${{env.DOTNET_ROOT}} && zip -r myapp.zip myapp
33+
34+
- name: Upload artifact
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: reports-app
38+
path: ${{env.DOTNET_ROOT}}/myapp.zip
39+
40+
deploy:
41+
runs-on: ubuntu-latest
42+
needs: build
43+
permissions:
44+
id-token: write
45+
contents: read
46+
47+
steps:
48+
- name: Download artifact
49+
uses: actions/download-artifact@v4
50+
with:
51+
name: reports-app
52+
path: ./artifact
53+
54+
- name: Login to Azure
55+
uses: azure/login@v2
56+
with:
57+
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_53A764BA120245DAA629D6794EAF9C22 }}
58+
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_39CBE0C302F2432EABACBFABADBBD12F }}
59+
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_436374D41D6C44689EDBFDE45E3572D7 }}
60+
61+
- name: Deploy to Azure Web App
62+
uses: azure/webapps-deploy@v3
63+
with:
64+
app-name: 'reportss'
65+
slot-name: 'Production'
66+
package: ./artifact/myapp.zip
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Build and deploy Usuarios.API to Azure Web App
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'src/backend/Usuarios.API/**'
9+
workflow_dispatch:
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up .NET Core
21+
uses: actions/setup-dotnet@v4
22+
with:
23+
dotnet-version: '8.x'
24+
25+
- name: Build
26+
run: dotnet build src/backend/Usuarios.API/Usuarios.API.csproj --configuration Release
27+
28+
- name: Publish
29+
run: dotnet publish src/backend/Usuarios.API/Usuarios.API.csproj -c Release -o ${{env.DOTNET_ROOT}}/myapp
30+
31+
- name: Zip artifact
32+
run: cd ${{env.DOTNET_ROOT}} && zip -r myapp.zip myapp
33+
34+
- name: Upload artifact
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: usuarios-app
38+
path: ${{env.DOTNET_ROOT}}/myapp.zip
39+
40+
deploy:
41+
runs-on: ubuntu-latest
42+
needs: build
43+
permissions:
44+
id-token: write
45+
contents: read
46+
47+
steps:
48+
- name: Download artifact
49+
uses: actions/download-artifact@v4
50+
with:
51+
name: usuarios-app
52+
path: ./artifact
53+
54+
- name: Login to Azure
55+
uses: azure/login@v2
56+
with:
57+
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_53A764BA120245DAA629D6794EAF9C22 }}
58+
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_39CBE0C302F2432EABACBFABADBBD12F }}
59+
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_436374D41D6C44689EDBFDE45E3572D7 }}
60+
61+
- name: Deploy to Azure Web App
62+
uses: azure/webapps-deploy@v3
63+
with:
64+
app-name: 'Usuario'
65+
slot-name: 'Production'
66+
package: ./artifact/myapp.zip

docs/04-Projeto de Interface.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,17 @@ Visão geral da interação do usuário pelas telas do sistema e protótipo inte
1010
## Diagrama de Fluxo
1111

1212
O diagrama apresenta o estudo do fluxo de interação do usuário com o sistema interativo e muitas vezes sem a necessidade do desenho do design das telas da interface. Isso permite que o design das interações seja bem planejado e gere impacto na qualidade no design do wireframe interativo que será desenvolvido logo em seguida.
13+
<img width="1536" height="1024" alt="90ddc317-112f-4a24-925e-709f4b30d725" src="https://github.com/user-attachments/assets/81b82d1d-4ca0-45c4-9fb9-c7caedd54112" />
1314

14-
O diagrama de fluxo pode ser desenvolvido com “boxes” que possuem internamente a indicação dos principais elementos de interface - tais como menus e acessos - e funcionalidades, tais como editar, pesquisar, filtrar, configurar - e a conexão entre esses boxes a partir do processo de interação. Você pode ver mais explicações e exemplos https://www.lucidchart.com/blog/how-to-make-a-user-flow-diagram.
1515

16-
![Exemplo de Diagrama de Fluxo](img/diagramafluxo2.jpg)
17-
18-
As referências abaixo irão auxiliá-lo na geração do artefato “Diagramas de Fluxo”.
19-
20-
> **Links Úteis**:
21-
> - [Fluxograma online: seis sites para fazer gráfico sem instalar nada | Produtividade | TechTudo](https://www.techtudo.com.br/listas/2019/03/fluxograma-online-seis-sites-para-fazer-grafico-sem-instalar-nada.ghtml)
2216

2317
## Wireframes
2418

2519
Protótipo web do sistema Paga Aí, focado na gestão de empréstimos pessoais.
2620
Permite cadastrar devedores, acompanhar valores em aberto, pagamentos e atrasos.
2721

2822
> - [Protótipo]([Paga Aí.pdf](https://github.com/user-attachments/files/26334763/Paga.Ai.pdf))
23+
> - Link: https://www.figma.com/design/YckzBDg4YeZmN70CtyeZCp/Paga-A%C3%AD?node-id=0-1&p=f&t=yvlnUEIvaVlpP2J8-0
2924
3025

3126

src/frontend/src/pages/Configuracoes.jsx

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,24 @@ export default function Configuracoes() {
77
const usuario = getUsuarioLogado();
88
const navigate = useNavigate();
99

10-
const [notif, setNotif] = useState({
10+
const STORAGE_KEY = `pagai_config_${usuario?.email ?? "default"}`;
11+
12+
const carregarConfig = () => {
13+
try {
14+
const salvo = localStorage.getItem(STORAGE_KEY);
15+
return salvo ? JSON.parse(salvo) : null;
16+
} catch { return null; }
17+
};
18+
19+
const configSalva = carregarConfig();
20+
21+
const [notif, setNotif] = useState(configSalva?.notif ?? {
1122
emailVencimento: true,
1223
emailPagamento: true,
1324
pushNovos: false,
1425
});
1526

16-
const [sistema, setSistema] = useState({
27+
const [sistema, setSistema] = useState(configSalva?.sistema ?? {
1728
diasAviso: 5,
1829
taxaPadrao: 30,
1930
moeda: "BRL",
@@ -22,6 +33,7 @@ export default function Configuracoes() {
2233
const [salvo, setSalvo] = useState(false);
2334

2435
function salvar() {
36+
localStorage.setItem(STORAGE_KEY, JSON.stringify({ notif, sistema }));
2537
setSalvo(true);
2638
setTimeout(() => setSalvo(false), 2500);
2739
}

src/frontend/vite.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ export default defineConfig({
77
react(),
88
tailwindcss(),
99
],
10-
base: '/',
10+
base: '/pmv-ads-2026-1-e4-proj-infra-t3-paga-ai/',
1111
})

0 commit comments

Comments
 (0)