Giter Site home page Giter Site logo

rick-and-morty's Introduction

Rick and Morty Character Explorer

Netlify Status

App online address: Rick and Morty Characters Explorer

This is a React application that fetches character data from the Rick and Morty API and displays it in a responsive, paginated table using Material-UI. Users can also view detailed information about each character in a modal dialog.

This project was bootstrapped with Create React App.

Features

  • Fetches character data from the Rick and Morty API
  • Displays characters in a responsive, paginated table
  • Allows sorting the table by character ID, name, status, and species
  • Provides a modal dialog to view detailed information about each character
  • Responsive design for different screen sizes
  • TypeScript for type safety

Dependencies

This project uses the following dependencies:

Installation

  1. Clone the repository:
https://github.com/artuone83/rick-and-morty
  1. Navigate to the project directory:
cd rick-and-morty
  1. Install the dependencies:
npm install

Usage

To start the development server, run:

npm start

This will start the application at http://localhost:3000.

Building for Production

To build the application for production, run:

npm run build

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build 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 eject

Note: this is a one-way operation. Once you eject, you can’t go back!

If you aren’t satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

Objective:

Develop an application that fetches character data from the Rick and Morty API, displays it in a responsive, paginated table using Material-UI, and allows users to view all character details in a modal dialog.

Requirements

Setup and Project Structure:

Initialize a new React project with TypeScript and install necessary packages (create-react-app with TypeScript template, Material-UI, axios for API requests). Organize the project into components and utilities.

API Integration:

Fetch character data from the Rick and Morty API (https://rickandmortyapi.com/api/character).

Components:

  • App Component: Serves as the container for all other components.
  • Character Table Component: Uses Material-UI's Table components to display characters. Include features for pagination, sorting, and editing.
    • Columns needed:
      • Image (circle avatar)
      • Id
      • Name
      • Status
      • Species
  • Character Details Dialog: A modal dialog that opens when the "Details" button in a table row is clicked, allowing users to view all of the character details.

Functionality:

  • Pagination: : Implement pagination to control the amount of data displayed at once, using Material-UI Pagination.
  • Sorting: Allow the user to sort the table by character ID, name, status, and species.
  • View Details: Each row should have a button that, when clicked, opens a modal dialog showing detailed information about the character in a nicely formatted way.

State Management:

  • Use React's Context API or useState and useEffect hooks to manage and persist state.
  • Optionally, use Redux for state management to show advanced skills

Types:

  • Define TypeScript interfaces or types for the character data and any props passed to components.

Styling:

  • Use Material-UI for all UI elements to ensure a cohesive look and feel.
  • Ensure the application is responsive and maintains layout integrity on different screen sizes.
  • Ensure the application is visually appealing and user-friendly.

Bonus (Optional)

  • Add filters (e.g., by status or species) to the table.
  • Enhance the modal dialog with animations or additional interactive elements.
  • Use Material-UI themes to customize the color scheme.
  • Use TanStack Query for data fetching

Deliverables:

  • A GitHub/Gitlab repository (or compressed file of a repository) containing the source code.
  • A ‘README.md’ file with instructions on how to set up and run the project, including any necessary installation steps

Evaluation criteria:

  • Correct implementation of features as per requirements.
  • Code quality, readability, and use of TypeScript for type safety.
  • Efficient use of Material-UI components and customization.
  • Implementation of the table's pagination and sorting features.
  • Creativity in UI/UX design and problem-solving approach.

rick-and-morty's People

Contributors

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