Search for movies and shows and add them to your nominations for the next Shoppies! Built for the Shopify Frontend Developer Intern Challenge.
- Search for movies and shows.
- List movie data and nominate 5 of them.
- Uses the OMDB API to fetch data for movies and shows. ( http://www.omdbapi.com/ )
- Stores user's nominations as cookies in the browser.
- next.js v10 with react v17: Routing made much easier with Next.js and also image optimization provided by next/image.
- Context API: Used in state management for nominations which is built in React.
- react-spinners: For loading animations
- js-cookie: To store the user's nominations in cookies.
- Clone into repo
- Run
npm install
- Run
touch .env
to create a file for your environment variables. Necessary variables are API_KEY and NEXT_PUBLIC_API_KEY to store your API key. - Get your API key from http://www.omdbapi.com/
- Run
npm run dev