Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
1615f8e
create Word class and controller
AlbertProfe Jan 10, 2025
55f09b9
add repository and application.properties
AlbertProfe Jan 10, 2025
17056d0
create controller word method get all words
AlbertProfe Jan 10, 2025
4116bbd
spring boot rest controller docs
AlbertProfe Jan 10, 2025
8f2660e
renaming files
AlbertProfe Jan 10, 2025
5cbb18b
renaming files
AlbertProfe Jan 10, 2025
656ac27
WordController comments
AlbertProfe Jan 16, 2025
0b15c36
test with JUnit to word entity
AlbertProfe Jan 16, 2025
b5c117a
spring docs-resources images project structure
AlbertProfe Jan 16, 2025
aa68930
spring docs-resources test JUnit word
AlbertProfe Jan 16, 2025
0eb0b0f
db local
AlbertProfe Jan 17, 2025
557b0d6
new folder Test Junit
AlbertProfe Jan 17, 2025
f596df5
basic wordController CRUD
AlbertProfe Jan 17, 2025
8fd89c9
H2 local db and word controller
AlbertProfe Jan 17, 2025
8fdc1ad
move md
AlbertProfe Jan 17, 2025
6c6a27e
doc: containers and pronunciationApp-v0.1
AlbertProfe Jan 23, 2025
50b30db
feat: refactor controller and repository
AlbertProfe Jan 23, 2025
052eeef
doc: spring boot for 5yo
AlbertProfe Jan 23, 2025
bc9c5ee
fix: getWordByPhoneticSpelling at WordRepository pronunciation fields…
AlbertProfe Jan 23, 2025
c4bc3db
feat: createWords and deleteAllWords
AlbertProfe Jan 23, 2025
52be154
doc: styling docs
AlbertProfe Jan 23, 2025
04dde27
doc: annotations
AlbertProfe Jan 24, 2025
7685ec5
doc: add mock-data script
AlbertProfe Jan 24, 2025
eea3805
doc: image h2 with mock data
AlbertProfe Jan 24, 2025
90e659a
feat: refactor with ResponseEntity, headers and optional
AlbertProfe Jan 24, 2025
ec64ac1
doc: import .csv to H2 DB
AlbertProfe Jan 24, 2025
d6590ad
doc: mock Server postman
AlbertProfe Jan 29, 2025
0313b8c
doc: update mock Server Postman
AlbertProfe Jan 29, 2025
e9fc851
doc: java faker
AlbertProfe Jan 30, 2025
b297b2a
doc: jpa
AlbertProfe Jan 30, 2025
072c3e2
feat: refactor WordController, implement WordService and create Healt…
AlbertProfe Jan 30, 2025
39a3371
doc: pronunciationApp-v0.2.d and spring 5yo
AlbertProfe Jan 30, 2025
530bbd3
feat: add PID, java version to HealthController
AlbertProfe Jan 30, 2025
84dc48f
doc: check health image
AlbertProfe Jan 30, 2025
113cb56
doc: create jpa folder
AlbertProfe Jan 30, 2025
2b07bc0
fix: check jpa folder typo
AlbertProfe Jan 30, 2025
2c1b472
doc: dal dao and model 0.2
AlbertProfe Jan 30, 2025
4f5d97c
doc: JPA queries
AlbertProfe Jan 31, 2025
a37c883
doc: update pronunciationApp-v0.2-model.md
AlbertProfe Jan 31, 2025
018aa40
doc: update jpa.md
AlbertProfe Jan 31, 2025
2a562e2
feat: new entity StageWord and controller service
AlbertProfe Jan 31, 2025
5157d71
doc: backend model v2.0
AlbertProfe Feb 7, 2025
8564464
doc: update backend model
AlbertProfe Feb 7, 2025
9c4a659
practica1
Pecepla Feb 7, 2025
34f5456
practica2
Pecepla Feb 7, 2025
2fc0b55
practica2
Pecepla Feb 7, 2025
5a0eae9
doc: PronunciationApp Backend v0.3.md
AlbertProfe Feb 13, 2025
45a3a67
doc: update PronunciationApp Backend v0.3.md
AlbertProfe Feb 13, 2025
2700416
Merge branch 'AlbertProfe:backend-spring-boot' into backend-spring-boot
Pecepla Feb 13, 2025
d253477
feat: Pronunciation entity and repo, onetomany word-pronunciation and…
AlbertProfe Feb 13, 2025
de41b66
doc: JPA one to many docs and images
AlbertProfe Feb 13, 2025
4924a83
doc: update pronunciationApp-v0.3
AlbertProfe Feb 13, 2025
b970d60
doc: update pronunciationApp-v0.3
AlbertProfe Feb 13, 2025
3ca4c14
doc: update pronunciationApp-v0.3
AlbertProfe Feb 13, 2025
75d2049
doc: update pronunciationApp-v0.3
AlbertProfe Feb 13, 2025
c9a6d11
doc: update pronunciationApp-v0.3
AlbertProfe Feb 13, 2025
257a16d
doc: enum
AlbertProfe Feb 14, 2025
9c2af16
doc: add unidirectional to pronunciationApp-v0.3
AlbertProfe Feb 14, 2025
2a78ced
doc: table summary word-pronunciation pronunciationApp-v0.3
AlbertProfe Feb 14, 2025
dd8f449
doc: craete pronunciationApp-v0.4.md
AlbertProfe Feb 20, 2025
ffc07de
feat: appUser and GameProgress entity
AlbertProfe Feb 20, 2025
9323a68
doc: cli spring, images jpa, annotations xml
AlbertProfe Feb 20, 2025
ffa2592
fix: typos
AlbertProfe Feb 20, 2025
aaa292a
feat: update service and repository
AlbertProfe Feb 21, 2025
ea44804
Merge branch 'AlbertProfe:backend-spring-boot' into backend-spring-boot
Pecepla Feb 21, 2025
759df00
Add files via upload
AlbertProfe Feb 21, 2025
538542e
Rename userAppBorrowBook - Copy.png to userAppBorrowBook-2
AlbertProfe Feb 21, 2025
24e56b8
Rename userAppBorrowBook-2 to userAppBorrowBook-2.png
AlbertProfe Feb 21, 2025
43c27b3
Update pronunciationApp-v0.4.md
AlbertProfe Feb 21, 2025
5e2722a
Update pronunciationApp-v0.4.md
AlbertProfe Feb 21, 2025
312c086
doc: update pronunciationApp-v0.4.md
AlbertProfe Feb 24, 2025
b4832d3
doc: mock-data insert sql
AlbertProfe Mar 7, 2025
675f423
Merge branch 'AlbertProfe:backend-spring-boot' into backend-spring-boot
Pecepla Mar 9, 2025
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
3 changes: 3 additions & 0 deletions backend/PRACTICA_01_BACKEND/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions backend/PRACTICA_01_BACKEND/.idea/PRACTICA_01_BACKEND.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions backend/PRACTICA_01_BACKEND/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions backend/PRACTICA_01_BACKEND/.idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions backend/PRACTICA_01_BACKEND/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

87 changes: 87 additions & 0 deletions backend/PRACTICA_01_BACKEND/Creacion ben User.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
### Creacion ben UserClient

Creacion de las variables el constructor y geter y seter la clase UserClient tendra la anotacion @Entity y la anotacion @Id para identificarlo en la base de datos

![](/home/pcpla/snap/marktext/9/.config/marktext/images/2025-02-05-09-37-47-image.png)

### Creacion del User Service

creare el User service a partir del service de words en la clase UserService le pondre la anotacion @Service para identificarlo como Service e injectare la clase UserRepositori para hacer las operaciones con base de datos con la anotacion @Autowired aqui creare los metodos crear, borrar,actualizar y consulta a la bas de datos haciendo en cada metodo la llamada al UserRepository

![](/home/pcpla/snap/marktext/9/.config/marktext/images/2025-02-05-09-35-23-image.png)

### Creacion de la interface user Repository

En esta interface haremos un extends de JpaRepository<UserClient, String>

hi hare una llamada al metodo getUserById pasandole por parametro el id del Usuario

![](/home/pcpla/snap/marktext/9/.config/marktext/images/2025-02-05-09-34-09-image.png)

### Creacion del User Conroller

Al crear el UserController le pondre las anotaciones @RestController
@RequestMapping para identificar que es un controlador lueho injectare el UserrService Para acceder a los metodos de la clase

+ Creare los metodos getAll users, getUserById, CreateUser, UpdateUser, DeleteUser con las anotaciones @GetMapping,para el metodo GetAllUsers

+ @GetMapping("/{id}") para filtrar por id

+ @PostMapping("/createUser") para crear un usuario

+ @PutMapping("/{id}") para actualizar el Usuario por id

+ @DeleteMapping("/{id}") para borrar el Usuario por id

+ Añadire el metodo que nos pado el maestro para añadir las cabeceras que dan informmacion de consumo de memotia del procesador y el entorno o jdk que estamos utilizando

##### Tambien utilizare las anotaciones

+ @PathVariable String id para recoger los usuarios por id

+ @RequestBody UserClient User es para acceder a las propiedades de el User client

+ Utilizare el metodo ResponseEntity para hacer la peticion http

![](/home/pcpla/snap/marktext/9/.config/marktext/images/2025-02-05-09-39-00-image.png)

### Creacion del healt controller

Esta clase nos la enseño el maetro hi la implemente, esta clase a trabes de @RestController
@RequestMapping("/api/health") accede a a el sevice hi introduce las cabeceras donde viene la informacion de consumo de recursos y version del jdk

![](/home/pcpla/snap/marktext/9/.config/marktext/images/2025-02-05-09-40-06-image.png)

### Ejecucion del proyecto

Ejecuto el proyecto sin problemas

![](/home/pcpla/snap/marktext/9/.config/marktext/images/2025-02-05-09-41-06-image.png)

### Creacion de Bse de datos

El Springboot me crea la base de datos

![](/home/pcpla/snap/marktext/9/.config/marktext/images/2025-02-05-09-42-00-image.png)

### Creacion del moc

creo el moc con el metodo put para introducoir datos de usuario

![](/home/pcpla/snap/marktext/9/.config/marktext/images/2025-02-05-09-43-37-image.png)

### Setear Usuario desde postman

el moc no me da error

![](/home/pcpla/snap/marktext/9/.config/marktext/images/2025-02-05-09-49-01-image.png)

### Introducion en la base de datos

he creado el primer usuario

![](/home/pcpla/snap/marktext/9/.config/marktext/images/2025-02-05-09-49-55-image.png)

### Clase Test

la clase test no la he implementado por que aun no he echo pruebas uniotarias
3 changes: 3 additions & 0 deletions backend/PRACTICA_01_BACKEND/ProyectoBackend/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions backend/PRACTICA_01_BACKEND/ProyectoBackend/.idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions backend/PRACTICA_01_BACKEND/ProyectoBackend/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions backend/PRACTICA_01_BACKEND/ProyectoBackend/.idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/mvnw text eol=lf
*.cmd text eol=crlf
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
HELP.md
target/
!.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/
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
wrapperVersion=3.3.2
distributionType=only-script
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip
Loading