Giter Site home page Giter Site logo

coding-challenge-cavista's Introduction

Frontend Coding Challenge

Overview

This project is a React application that displays a list of movies and series using data fetched from a JSON feed. The app allows users to search and sort the list based on different criteria.

Features

  • Fetch and display movie and series data
  • Filter entries based on title search
  • Sort entries by title or year
  • Responsive design
  • Loading and error handling states
  • Pagination with a "View More" button

Screenshots

Known Issues: Some images from the JSON feed are not displaying. This may be due to broken URLs in the provided JSON data.

Desktop View

desktop view

Mobile View

mobile view

Technologies Used

  • React
  • TypeScript
  • React Query
  • Axios
  • Jest
  • React Testing Library
  • CSS (BEM methodology)

Setup Instructions

Prerequisites

Make sure you have the following installed:

  • Node.js (version 14 or later)
  • npm (or yarn)

Clone the Repository

git clone https://github.com/dyCodes/coding-challenge-cavista.git
cd coding-challenge-cavista

Install Dependencies

npm install
# or
yarn install

Start the Development Server

npm start
# or
yarn start

Navigate to http://localhost:3000 in your browser to view the application.

Run Tests

npm test
# or
yarn test

Application Structure

Pages

  • Home Page: Displays two tiles linking to Series and Movies pages.
  • Series Page: Fetches and displays series data with search and sorting options.
  • Movies Page: Fetches and displays movie data with search and sorting options.

Data Fetching

  • Axios: Used for HTTP requests to fetch JSON feed.
  • React Query: Manages and caches fetched data.

State Management

  • Search and Sorting: Managed using React state and handlers.

Design and Styling

  • BEM Methodology: Utilized BEM (Block, Element, Modifier) methodology for structured and maintainable CSS. This approach was combined with utility classes to handle common styles efficiently.
  • Responsive Design: Ensures compatibility with mobile devices.

TypeScript

TypeScript is used to provide type safety across the application, including for props, state, and API data.

coding-challenge-cavista's People

Contributors

dycodes avatar

Watchers

 avatar

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.