Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pruebas #1 y #2 completadas! ๐Ÿ˜€ โœ… #65

Closed
wants to merge 7 commits into from
Closed
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
3 changes: 3 additions & 0 deletions pruebas/01-reading-list/gasperdev/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}
36 changes: 36 additions & 0 deletions pruebas/01-reading-list/gasperdev/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js
package-lock.json

# testing
/coverage

# next.js
/.next/
/out/

# production
/build
# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local


# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
79 changes: 79 additions & 0 deletions pruebas/01-reading-list/gasperdev/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# Aplicaciรณn de Lista de Libros

El objetivo de esta prueba era diseรฑar e implementar una pequeรฑa aplicaciรณn web de lista de libros .

## Crรฉditos

Esta aplicaciรณn la desarrolle como parte de una prueba tรฉcnica propuesta por [Midudev](https://midu.tube/). Agradesco a Midudev por proporcionar el desafรญo y permitirnos aprender y mejorar nuestras habilidades en el desarrollo web.

---

## Vista Previa de la Aplicaciรณn

Puedes acceder a la aplicaciรณn en lรญnea en la siguiente URL: [Lista de Libros](https://01-reading-list.vercel.app/)

El diseรฑo de la aplicaciรณn estรก basado en [Flowbite UI](https://flowbite.com/docs/getting-started/introduction/), asegรบrate de revisar su documentaciรณn si necesitas informaciรณn detallada sobre la interfaz de usuario y componentes utilizados.

## Documentaciรณn

### Instalaciรณn y Ejecuciรณn

Antes de comenzar, asegรบrate de tener Node.js instalado en tu sistema.

1. Clona este repositorio en tu mรกquina local:

```bash
git clone <https://github.com/gasper-dev/01-reading-list.git>
```

2. Navega al directorio de la aplicaciรณn:

```bash
cd lista-de-libros-app
```

3. Instala las dependencias necesarias:

```bash
npm install
# o
yarn install
# o
pnpm install
```

4. Ejecuta la aplicaciรณn en modo de desarrollo:

```bash
npm run dev
# o
yarn dev
# o
pnpm dev
```

La aplicaciรณn estarรก disponible en `http://localhost:3000`.

### Tecnologรญas Utilizadas

La aplicaciรณn ha sido desarrollada utilizando las siguientes tecnologรญas y herramientas:

- Next.js: Un framework de React que facilita la creaciรณn de aplicaciones web con renderizado del lado del servidor y en el cliente.

### Pruebas

Para asegurar la calidad del cรณdigo, se han incluido pruebas unitarias utilizando Jest. Las pruebas se encuentran en el directorio `test` y utilizan el sufijo `.test.js` para ser identificadas automรกticamente por Jest. Puedes ejecutar las pruebas con el siguiente comando:

```bash
npm run test
# o
yarn test
# o
pnpm test
```

### Aprendizaje Adicional

Si deseas obtener mรกs informaciรณn sobre alguna de las tecnologรญas utilizadas o cรณmo se ha implementado alguna funcionalidad especรญfica, consulta la documentaciรณn oficial de cada herramienta:

- Next.js: [https://nextjs.org/docs](https://nextjs.org/docs)
235 changes: 235 additions & 0 deletions pruebas/01-reading-list/gasperdev/books.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,235 @@
{
"library": [
{
"book": {
"title": "El Seรฑor de los Anillos",
"pages": 1200,
"genre": "Fantasรญa",
"cover": "https://images-na.ssl-images-amazon.com/images/S/compressed.photo.goodreads.com/books/1566425108i/33.jpg",
"synopsis": "Una aventura รฉpica en un mundo de fantasรญa llamado la Tierra Media.",
"year": 1954,
"ISBN": "978-0618640157",
"author": {
"name": "J.R.R. Tolkien",
"otherBooks": [
"El Hobbit",
"El Silmarillion"
]
}
}
},
{
"book": {
"title": "Juego de Tronos",
"pages": 694,
"genre": "Fantasรญa",
"cover": "https://images-na.ssl-images-amazon.com/images/S/compressed.photo.goodreads.com/books/1273763400i/8189620.jpg",
"synopsis": "En un reino donde las estaciones duran aรฑos, una batalla รฉpica por el trono se desarrolla.",
"year": 1996,
"ISBN": "978-0553103540",
"author": {
"name": "George R. R. Martin",
"otherBooks": [
"Choque de Reyes",
"Tormenta de Espadas",
"Festรญn de Cuervos"
]
}
}
},
{
"book": {
"title": "Harry Potter y la piedra filosofal",
"pages": 223,
"genre": "Fantasรญa",
"cover": "https://images-na.ssl-images-amazon.com/images/S/compressed.photo.goodreads.com/books/1550337333i/15868.jpg",
"synopsis": "Un niรฑo descubre que es un mago y comienza una aventura en una escuela de magia.",
"year": 1997,
"ISBN": "978-0747532699",
"author": {
"name": "J.K. Rowling",
"otherBooks": [
"Harry Potter y la cรกmara secreta",
"Harry Potter y el prisionero de Azkaban",
"Harry Potter y el cรกliz de fuego"
]
}
}
},
{
"book": {
"title": "1984",
"pages": 328,
"genre": "Ciencia ficciรณn",
"cover": "https://images-na.ssl-images-amazon.com/images/S/compressed.photo.goodreads.com/books/1657781256i/61439040.jpg",
"synopsis": "Una inquietante visiรณn de un futuro distรณpico y totalitario.",
"year": 1949,
"ISBN": "978-0451524935",
"author": {
"name": "George Orwell",
"otherBooks": [
"Rebeliรณn en la granja"
]
}
}
},
{
"book": {
"title": "Apocalipsis Zombie",
"pages": 444,
"genre": "Zombies",
"cover": "https://images-na.ssl-images-amazon.com/images/S/compressed.photo.goodreads.com/books/1422626176i/24762432.jpg",
"synopsis": "Un gallego se queda en casa en pleno apocalipsis zombie y acaba casi salvando el mundo",
"year": 2001,
"ISBN": "978-4444532611",
"author": {
"name": "Manel Loreiro",
"otherBooks": []
}
}
},
{
"book": {
"title": "Dune",
"pages": 412,
"genre": "Ciencia ficciรณn",
"cover": "https://images-na.ssl-images-amazon.com/images/S/compressed.photo.goodreads.com/books/1555447414i/44767458.jpg",
"synopsis": "En el inhรณspito planeta desรฉrtico de Arrakis, una gran intriga polรญtica y familiar se desarrolla.",
"year": 1965,
"ISBN": "978-0441172719",
"author": {
"name": "Frank Herbert",
"otherBooks": [
"El mesรญas de Dune",
"Hijos de Dune"
]
}
}
},
{
"book": {
"title": "La Guรญa del Autoestopista Galรกctico",
"pages": 216,
"genre": "Ciencia ficciรณn",
"cover": "https://images-na.ssl-images-amazon.com/images/S/compressed.photo.goodreads.com/books/1653311117i/6691227.jpg",
"synopsis": "Un viaje absurdo y cรณmico por el espacio, con toallas.",
"year": 1979,
"ISBN": "978-0345391803",
"author": {
"name": "Douglas Adams",
"otherBooks": [
"El restaurante del fin del mundo",
"La vida, el universo y todo lo demรกs"
]
}
}
},
{
"book": {
"title": "Neuromante",
"pages": 271,
"genre": "Ciencia ficciรณn",
"cover": "https://images-na.ssl-images-amazon.com/images/S/compressed.photo.goodreads.com/books/1554437249i/6088007.jpg",
"synopsis": "Una visiรณn profรฉtica de la ciber-realidad y la inteligencia artificial.",
"year": 1984,
"ISBN": "978-0441569595",
"author": {
"name": "William Gibson",
"otherBooks": [
"Conde Cero",
"Mona Lisa Acelerada"
]
}
}
},
{
"book": {
"title": "Fahrenheit 451",
"pages": 249,
"genre": "Ciencia ficciรณn",
"cover": "https://images-na.ssl-images-amazon.com/images/S/compressed.photo.goodreads.com/books/1383718290i/13079982.jpg",
"synopsis": "Una sociedad futura donde los libros estรกn prohibidos y 'bomberos' queman cualquier libro que encuentren.",
"year": 1953,
"ISBN": "978-1451673319",
"author": {
"name": "Ray Bradbury",
"otherBooks": [
"Crรณnicas marcianas",
"El hombre ilustrado"
]
}
}
},
{
"book": {
"title": "El resplandor",
"pages": 688,
"genre": "Terror",
"cover": "https://images-na.ssl-images-amazon.com/images/S/compressed.photo.goodreads.com/books/1641398308i/60038757.jpg",
"synopsis": "Una familia se muda a un hotel aislado para el invierno donde una presencia siniestra influye en el padre hacia la violencia.",
"year": 1977,
"ISBN": "978-0307743657",
"author": {
"name": "Stephen King",
"otherBooks": [
"Carrie",
"It"
]
}
}
},
{
"book": {
"title": "Drรกcula",
"pages": 418,
"genre": "Terror",
"cover": "https://images-na.ssl-images-amazon.com/images/S/compressed.photo.goodreads.com/books/1387151694i/17245.jpg",
"synopsis": "La historia del infame conde Drรกcula y su intento de mudarse de Transilvania a Inglaterra.",
"year": 1897,
"ISBN": "978-0486411095",
"author": {
"name": "Bram Stoker",
"otherBooks": [
"La joya de las siete estrellas",
"La madriguera del gusano blanco"
]
}
}
},
{
"book": {
"title": "Frankenstein",
"pages": 280,
"genre": "Terror",
"cover": "https://images-na.ssl-images-amazon.com/images/S/compressed.photo.goodreads.com/books/1669159060i/63631742.jpg",
"synopsis": "Un cientรญfico obsesionado crea una criatura viva a partir de partes de cuerpos robadas, con consecuencias desastrosas.",
"year": 1818,
"ISBN": "978-0486282114",
"author": {
"name": "Mary Shelley",
"otherBooks": [
"El รบltimo hombre",
"Valperga"
]
}
}
},
{
"book": {
"title": "La llamada de Cthulhu",
"pages": 43,
"genre": "Terror",
"cover": "https://images-na.ssl-images-amazon.com/images/S/compressed.photo.goodreads.com/books/1485924654i/34094154.jpg",
"synopsis": "La historia de un monstruo ancestral que amenaza con revivir y dominar el mundo.",
"year": 1928,
"ISBN": "978-1542461690",
"author": {
"name": "H.P. Lovecraft",
"otherBooks": [
"El horror de Dunwich",
"En las montaรฑas de la locura"
]
}
}
}
]}
7 changes: 7 additions & 0 deletions pruebas/01-reading-list/gasperdev/jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"compilerOptions": {
"paths": {
"@/*": ["./src/*"]
}
}
}
9 changes: 9 additions & 0 deletions pruebas/01-reading-list/gasperdev/next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
domains: [],
unoptimized: true,
},
};

module.exports = nextConfig;
Loading
Loading