Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
HELP.md
target/
**/target/
**/bin/
*.class
.mvn/
.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/

### VS Code ###
.vscode/

### Root/General ###
.idea/
*.log

### Frontend (Angular/Node) ###
**/node_modules/
**/dist/
.angular/
**/tmp/
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"java.project.sourcePaths": [
"backend/src/main/java"
]
}
2 changes: 2 additions & 0 deletions backend/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/mvnw text eol=lf
*.cmd text eol=crlf
3 changes: 3 additions & 0 deletions backend/.mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
wrapperVersion=3.3.4
distributionType=only-script
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.12/apache-maven-3.9.12-bin.zip
46 changes: 46 additions & 0 deletions backend/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
## Backend
API desarrollada en Java 17 con Spring Boot para la gestión (CRUD) de registros de personas en una base de datos MySQL.

## Requisitos Previos
Java: JDK 17 o superior.

Maven: v3.8 o superior.

MySQL: Base de datos corriendo en el puerto 3306 (o el configurado en application.properties).

## Configuración de Base de Datos
Asegurarse de haber ejecutado el script SQL que se encuentra en la rama munoz_bd.

Verificar las credenciales en src/main/resources/application.properties.

## Instalación y Ejecución
Navegar a la carpeta del proyecto:
cd backend

Compilar el proyecto:
./mvnw clean install

Ejecutar la aplicación:
./mvnw spring-boot:run

La API estará disponible en http://localhost:8080.

## Endpoints Principales
GET /api/person: Lista todos los registros.

GET /api/person/{id}: Obtiene un registro por ID.

POST /api/person: Crea un nuevo registro.

PUT /api/person/{id}: Actualiza un registro existente.

DELETE /api/person/{id}: Elimina un registro.

## Pruebas de Funcionamiento
Se incluyen capturas de pantalla de las pruebas realizadas en Bruno (alternativa a Postman) para validar cada endpoint.

/screenshots/listar-personas.png
/screenshots/listar-una-persona.png
/screenshots/crear-una-persona.png
/screenshots/modificar-una-persona.png
/screenshots/borrar-una-persona.png
Loading