Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
2733cf4
Inicializar proyecto con dependencias y estructura básica
DianaVilchez Jul 22, 2024
5d30906
Creacion del modelo y primeros componentes
DianaVilchez Jul 24, 2024
28463ad
configuración inicial del componente Home
DianaVilchez Jul 24, 2024
2c41094
Añadir Header y Menu con estilos iniciales
DianaVilchez Jul 26, 2024
3bca99d
Rendering of the first page of movies and previews in styles
DianaVilchez Jul 27, 2024
85176d2
Advance styles: implement card ordering and design
DianaVilchez Jul 28, 2024
46d6a54
Implement pagination and update corresponding state
DianaVilchez Jul 30, 2024
8e0807e
Fetch genres from API and implement formatGenresToMap and formatGenre…
DianaVilchez Aug 5, 2024
ce4e164
Initial steps in routing implementation
DianaVilchez Aug 20, 2024
e5eb35e
Add multiple genres filter functionality
DianaVilchez Aug 21, 2024
c35bb13
Add multiple genres filter functionality
DianaVilchez Aug 21, 2024
893720b
Update styles: improve pagination and adjust MovieCard layout
DianaVilchez Aug 24, 2024
885827f
Add logo and footer
DianaVilchez Aug 25, 2024
9d2ea63
Add logo and footer
DianaVilchez Aug 25, 2024
21647e3
Implement year filter and add queryParams
DianaVilchez Aug 25, 2024
5eea462
Add sortBy, movieDetails, and set up corresponding params
DianaVilchez Aug 30, 2024
9723b2d
Incorporate page number into params
DianaVilchez Aug 30, 2024
0a25e24
Test: crear test para formatMovie
DianaVilchez Sep 1, 2024
b836429
Test: create test for MovieCard
DianaVilchez Sep 2, 2024
8fcd8a2
Test: create test for MovieList and update MovieCard
DianaVilchez Sep 3, 2024
211b7c2
Update styles Home
DianaVilchez Sep 4, 2024
f8583ff
proyect initial
DianaVilchez Sep 4, 2024
4917b2e
Merge pull request #29 from DianaVilchez/desarrollo
DianaVilchez Sep 4, 2024
4199bce
Compile project
DianaVilchez Sep 4, 2024
38f8099
Update Compile project
DianaVilchez Sep 4, 2024
ef8f6e7
Update build proyect
DianaVilchez Sep 4, 2024
67f03aa
Test:Add pagination component test
DianaVilchez Sep 8, 2024
478b25e
Test:Add pagination component test
DianaVilchez Sep 8, 2024
a801259
Test:Add Home component test
DianaVilchez Sep 8, 2024
10707ae
Test:Add test for getMovieDetails function
DianaVilchez Sep 8, 2024
eea80b4
Test:Add unit test for ApiServices
DianaVilchez Sep 11, 2024
fe68cd2
chore: minor adjustments for deployment
DianaVilchez Nov 29, 2024
7dcb23d
Merge branch 'desarrollo'
DianaVilchez Nov 29, 2024
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
3 changes: 3 additions & 0 deletions movie-challenge/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
VITE_TOKEN_API=eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiI2OGZmZjE0MGM2YzBiNDRkMzQyNTk2YjkyMzg5NGQ5OSIsIm5iZiI6MTcyMTYyMDcxMi40NjE2Niwic3ViIjoiNjY5ODQzNTBmODI1ZDUyZjMwMjMxMWE3Iiwic2NvcGVzIjpbImFwaV9yZWFkIl0sInZlcnNpb24iOjF9.xjkl1MXBkBEhBq4oXNWSxgmOxLPaPtlqk-zgqsvwEy4
VITE_API_KEY =68fff140c6c0b44d342596b923894d99
VITE_BASE_URL = https://api.themoviedb.org/3
18 changes: 18 additions & 0 deletions movie-challenge/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
plugins: ['react-refresh'],
rules: {
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
}
26 changes: 26 additions & 0 deletions movie-challenge/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
.env
coverage/

31 changes: 31 additions & 0 deletions movie-challenge/.swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"jsc": {
"target": "es2017",
"parser": {
"syntax": "typescript",
"tsx": true,
"decorators": false,
"dynamicImport": false
},
"transform": {
"react": {
"pragma": "React.createElement",
"pragmaFrag": "React.Fragment",
"throwIfNamespace": true,
"development": false,
"useBuiltins": false,
"runtime": "automatic"
},
"hidden": {
"jest": true
}
}
},
"module": {
"type": "commonjs",
"strict": false,
"strictMode": true,
"lazy": false,
"noInterop": false
}
}
30 changes: 30 additions & 0 deletions movie-challenge/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh

## Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

- Configure the top-level `parserOptions` property like this:

```js
export default {
// other rules...
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: __dirname,
},
}
```

- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
8 changes: 8 additions & 0 deletions movie-challenge/babel.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* eslint-env node */
module.exports = {
presets: [
'@babel/preset-env',
'@babel/preset-typescript',
'@babel/preset-react',
],
};
Loading