Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davorpa/omdb-search-react-app
A OMDb/IMDb app / client developed using Vite+React.JS
https://github.com/davorpa/omdb-search-react-app
best-practices javascript omdb-api-consumer omdb-client omdb-movie-search react-app react-patterns reactjs reactjs-app vitejs
Last synced: 4 days ago
JSON representation
A OMDb/IMDb app / client developed using Vite+React.JS
- Host: GitHub
- URL: https://github.com/davorpa/omdb-search-react-app
- Owner: davorpa
- License: agpl-3.0
- Created: 2023-02-10T05:50:25.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-18T12:17:38.000Z (9 months ago)
- Last Synced: 2024-02-18T13:27:20.205Z (9 months ago)
- Topics: best-practices, javascript, omdb-api-consumer, omdb-client, omdb-movie-search, react-app, react-patterns, reactjs, reactjs-app, vitejs
- Language: HTML
- Homepage: https://davorpa.github.io/omdb-search-react-app/
- Size: 2.47 MB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OMDb Search React App
[![Lighthouse Performance Badge](./target/lighthouse/lighthouse_performance.svg)](https://googlechrome.github.io/lighthouse/viewer/?psiurl=https%3A%2F%2Fdavorpa.github.io%2Fomdb-search-react-app%2F&strategy=mobile&category=performance&category=accessibility&category=best-practices&category=seo&category=pwa#performance) [![Lighthouse Accessibility Badge](./target/lighthouse/lighthouse_accessibility.svg)](https://googlechrome.github.io/lighthouse/viewer/?psiurl=https%3A%2F%2Fdavorpa.github.io%2Fomdb-search-react-app%2F&strategy=mobile&category=performance&category=accessibility&category=best-practices&category=seo&category=pwa#accessibility) [![Lighthouse Best Practices Badge](./target/lighthouse/lighthouse_best-practices.svg)](https://googlechrome.github.io/lighthouse/viewer/?psiurl=https%3A%2F%2Fdavorpa.github.io%2Fomdb-search-react-app%2F&strategy=mobile&category=performance&category=accessibility&category=best-practices&category=seo&category=pwa#best-practices) [![Lighthouse SEO Badge](./target/lighthouse/lighthouse_seo.svg)](https://googlechrome.github.io/lighthouse/viewer/?psiurl=https%3A%2F%2Fdavorpa.github.io%2Fomdb-search-react-app%2F&strategy=mobile&category=performance&category=accessibility&category=best-practices&category=seo&category=pwa#seo) [![Lighthouse PWA Badge](./target/lighthouse/lighthouse_pwa.svg)](https://googlechrome.github.io/lighthouse/viewer/?psiurl=https%3A%2F%2Fdavorpa.github.io%2Fomdb-search-react-app%2F&strategy=mobile&category=performance&category=accessibility&category=best-practices&category=seo&category=pwa#pwa)
![screenshot](screenshot.png)
Aplicación para buscar películas usando la API de
Requerimientos:
- [x] Necesita mostrar un input para buscar la película y un botón para buscar.
- [x] Lista las películas y muestra el título, año y poster.
- [x] Que el formulario funcione
- [x] Haz que las películas se muestren en un grid responsive.
- [x] Hacer el fetching de datos a la APIPrimera iteración:
- [x] Evitar que se haga la misma búsqueda dos veces seguidas.
- [x] Haz que la búsqueda se haga automáticamente al escribir.
- [x] Evita que se haga la búsqueda continuamente al escribir (debounce)Segunda iteración:
- [x] Busca por los demás campos que permite la API.
- [x] Haz que se pueda ordenar por alguno de los campos. (ej. titulo).Tercera iteración:
- [x] Implementa algún tipo de paginación.
- [x] Modifica el punto anterior para que se ejecute con infinite-scroll (`IntersectionObserver`)---
This project was bootstrapped with [Create Vite Project](https://vitejs.dev/guide/#scaffolding-your-first-vite-project) configured with a **React SWC** template:
```shell
npm create vite@latest omdb-search-react-app --template react-swc
```## First Steps
To begin developing this project...
1. Request for an API key using [the following form](https://www.omdbapi.com/apikey.aspx) and create an `.env.local` file using `.env.example` file.
```properties
VITE_OMDB_APIKEY=""
```E.g.: `4287ad07`
2. Run next instructions in a command prompt:
```shell
npm install
npm run dev
```## Available Scripts
In a project where Vite is installed, you can use the `vite` binary in your `npm` scripts, or run it directly with `npx vite`. Here are the default npm scripts in a scaffolded Vite project:
### `npm run dev`
Runs the app in the development mode.\
Open [http://localhost:5173](http://localhost:5173) to view it in your browser.The page will reload when you make changes.
### `npm run build`
Builds the app for production to the `dist` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!See the section about [deployment](https://vitejs.dev/guide/static-deploy.html) for more information.
### `npm run preview`
Locally preview production build.
Once you've built the app, you may test it locally by running `npm run preview` command.
The `vite preview` command will boot up a local static web server that serves the files from `dist` at [http://localhost:4173](http://localhost:4173). It's an easy way to check if the production build looks OK in your local environment.
## Learn More
You can learn more in the [Vite documentation](https://vitejs.dev/guide/).
To learn React, check out the [React documentation](https://reactjs.org/).
## License
The content of this project itself and the underlying source code used to format and display that content is licensed under the [The GNU Affero General Public License Version 3](LICENSE).