clase:daw:proyecto:1eval:tema02
Diferencias
Muestra las diferencias entre dos versiones de la página.
| Ambos lados, revisión anteriorRevisión previaPróxima revisión | Revisión previa | ||
| clase:daw:proyecto:1eval:tema02 [2025/12/18 10:30] – [Modelo de Banco] Lorenzo | clase:daw:proyecto:1eval:tema02 [2026/01/20 12:20] (actual) – Lorenzo | ||
|---|---|---|---|
| Línea 12: | Línea 12: | ||
| * Backend | * Backend | ||
| * MySQL Base de datos | * MySQL Base de datos | ||
| + | * NGING Frontend | ||
| <uml> | <uml> | ||
| Línea 110: | Línea 111: | ||
| <uml> | <uml> | ||
| + | hide circle | ||
| class Cliente { | class Cliente { | ||
| Línea 123: | Línea 125: | ||
| class CuentaBancaria { | class CuentaBancaria { | ||
| saldo | saldo | ||
| - | | + | |
| } | } | ||
| Línea 130: | Línea 132: | ||
| fechaCaducidad | fechaCaducidad | ||
| cvc | cvc | ||
| - | | + | |
| - | apellido1 | + | |
| - | apellido2 | + | |
| } | } | ||
| class MovimientoBancario { | class MovimientoBancario { | ||
| Línea 140: | Línea 140: | ||
| Date fecha | Date fecha | ||
| BigDecimal importe | BigDecimal importe | ||
| + | String concepto | ||
| } | } | ||
| Línea 158: | Línea 159: | ||
| } | } | ||
| </ | </ | ||
| + | |||
| + | |||
| + | ==== Endpoints ==== | ||
| + | |||
| + | |||
| + | * ''/ | ||
| + | |||
| + | <sxh json> | ||
| + | { | ||
| + | autorizacion: | ||
| + | login:" | ||
| + | api_token:" | ||
| + | }, | ||
| + | origen: { | ||
| + | iban:" | ||
| + | }, | ||
| + | destino: { | ||
| + | iban:" | ||
| + | }, | ||
| + | pago: { | ||
| + | importe: 567.67, | ||
| + | concepto:" | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | Reglas: | ||
| + | * La cuenta origen debe ser del usuario **login** | ||
| + | * Los iban deben tener formato de iban y empezar por ES | ||
| + | * El importe debe ser positivo | ||
| + | * El concepto debe tener al menos 3 letras | ||
| + | * Debe haber suficiente dinero en la cuenta. | ||
| + | |||
| + | |||
| + | * ''/ | ||
| + | |||
| + | <sxh json> | ||
| + | { | ||
| + | autorizacion: | ||
| + | login:" | ||
| + | api_token:" | ||
| + | }, | ||
| + | origen: { | ||
| + | numeroTarjeta:" | ||
| + | fechaCaducidad:" | ||
| + | cvc:" | ||
| + | nombreCompleto:" | ||
| + | }, | ||
| + | destino: { | ||
| + | iban:" | ||
| + | }, | ||
| + | pago: { | ||
| + | importe: 567.67, | ||
| + | concepto:" | ||
| + | } | ||
| + | } | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | Reglas: | ||
| + | * La cuenta destino debe ser del usuario **login** | ||
| + | * Los iban deben tener formato de iban y empezar por ES | ||
| + | * El importe debe ser positivo | ||
| + | * El concepto debe tener al menos 3 letras | ||
| + | * Debe haber suficiente dinero en la cuenta de la tarjeta asociada. | ||
| + | * Todos los datos de la tarjeta deben coincidir con la tarjeta. | ||
| ===== desplegar-proyecto ===== | ===== desplegar-proyecto ===== | ||
| El repositorio '' | El repositorio '' | ||
| Línea 169: | Línea 237: | ||
| + | ===== Ejemplo simple despliegue ===== | ||
| + | <sxh bash; | ||
| + | #!/bin/bash | ||
| + | docker compose down | ||
| + | docker compose build --no-cache | ||
| + | docker compose up -d | ||
| + | </ | ||
| + | <sxh yaml;title: docker-compose.yml; | ||
| + | services: | ||
| + | web: | ||
| + | build: | ||
| + | context: . | ||
| + | dockerfile: web.Dockerfile | ||
| + | container_name: | ||
| + | environment: | ||
| + | VIRTUAL_HOST: | ||
| + | networks: | ||
| + | - proxy_red | ||
| + | mariadb: | ||
| + | image: mariadb: | ||
| + | container_name: | ||
| + | environment: | ||
| + | MYSQL_ROOT_PASSWORD: | ||
| + | MYSQL_DATABASE: | ||
| + | MYSQL_USER: lorenzo | ||
| + | MYSQL_PASSWORD: | ||
| + | networks: | ||
| + | - proxy_red | ||
| + | networks: | ||
| + | proxy_red: | ||
| + | external: | ||
| + | name: nginx-proxy-network | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | <sxh bash; | ||
| + | FROM nginx: | ||
| + | COPY index.html / | ||
| + | </ | ||
| + | |||
| + | <sxh html; | ||
| + | < | ||
| + | <html lang=" | ||
| + | < | ||
| + | <meta charset=" | ||
| + | < | ||
| + | </ | ||
| + | < | ||
| + | hola lorenzo | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | </ | ||
clase/daw/proyecto/1eval/tema02.1766050253.txt.gz · Última modificación: por Lorenzo
