Git Product home page Git Product logo

davorpa / omdb-search-react-app Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 2.53 MB

A OMDb/IMDb app / client developed using Vite+React.JS

Home Page: https://davorpa.github.io/omdb-search-react-app/

License: GNU Affero General Public License v3.0

HTML 67.50% CSS 5.50% JavaScript 27.00%
omdb-api-consumer omdb-client omdb-movie-search reactjs reactjs-app javascript react-app react-patterns vitejs best-practices

omdb-search-react-app's Introduction

OMDb Search React App

Lighthouse Performance Badge Lighthouse Accessibility Badge Lighthouse Best Practices Badge Lighthouse SEO Badge Lighthouse PWA Badge

screenshot

Aplicación para buscar películas usando la API de https://www.omdbapi.com

Requerimientos:

  • Necesita mostrar un input para buscar la película y un botón para buscar.
  • Lista las películas y muestra el título, año y poster.
  • Que el formulario funcione
  • Haz que las películas se muestren en un grid responsive.
  • Hacer el fetching de datos a la API

Primera iteración:

  • Evitar que se haga la misma búsqueda dos veces seguidas.
  • Haz que la búsqueda se haga automáticamente al escribir.
  • Evita que se haga la búsqueda continuamente al escribir (debounce)

Segunda iteración:

  • Busca por los demás campos que permite la API.
  • Haz que se pueda ordenar por alguno de los campos. (ej. titulo).

Tercera iteración:

  • Implementa algún tipo de paginación.
  • Modifica el punto anterior para que se ejecute con infinite-scroll (IntersectionObserver)

This project was bootstrapped with Create Vite Project configured with a React SWC template:

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 and create an .env.local file using .env.example file.

    VITE_OMDB_APIKEY="<Your API key>"

    E.g.: 4287ad07

  2. Run next instructions in a command prompt:

    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 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 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. 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.

To learn React, check out the React documentation.

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.

omdb-search-react-app's People

Contributors

davorpa avatar dependabot[bot] avatar github-actions[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

ma-shi22

omdb-search-react-app's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.