Adalab / modulo-3-evaluacion-final-ellisoalgo

modulo-3-evaluacion-final-ellisoalgo created by GitHub Classroom

Home Page:http://beta.adalab.es/modulo-3-evaluacion-final-ellisoalgo/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

image

Final Evaluation - Module 3

This project is the final evaluation of Module 3 from Adalab. It consists of a web application developed with in React, which allows users to search and view characters from the Rick and Morty series.

Application Overview

The application focuses on providing an intuitive interface for searching Rick and Morty characters. Users can filter characters by name, status (alive, dead, unknown), planet of origin, and species. Detailed information about each character, including their image, name, species, and status, is displayed upon selection. The application is fully responsive, designed in mobile-first, and adaptable to all screen sizes.

Main Features

  • Character Search: Allows users to search for characters by name.
  • Status Filter: Users can filter results based on the character's status (alive, dead, unknown).
  • Planet of Origin Filter: Users can filter characters based on their planet of origin.
  • Species Filter: Users can filter characters by species.
  • Detailed View: Displays detailed information about a selected character.

Installation and Usage

Prerequisites

Ensure you have the following software installed:

Installation Steps

Clone the Repository:

git clone https://github.com/Adalab/modulo-3-evaluacion-final-ellisoalgo.git

Install Dependencies: Navigate to the project directory and run the following command:

npm install

Start the Development Server: Once the dependencies are installed, start the server with:

npm run dev

Open the Application: Open your browser and navigate to http://localhost:5173 to see the application in action.

Tools Used

  • HTML5: Used for structuring the content of the application.
  • SCSS: Used for designing the user interface.
  • JavaScript (ES6): Used for the logic and interactivity of the application.
  • React: JavaScript library used to build the user interface declaratively and efficiently.
  • React Router: Used for handling navigation between different views of the application.
  • Fetch API: Used to make HTTP requests to the Rick and Morty API
  • Sass: CSS preprocessor used to write more maintainable and modular styles.
  • Webpack: Used to compile and bundle JavaScript modules.

Project Structure

The project structure is as follows:

/public
  |-- index.html
/src
  |-- components
      |-- CharacterCard.js
      |-- CharacterDetail.js
      |-- CharacterList.js
      |-- Filters.js
  |-- services
      |-- api.js
  |-- styles
      |-- App.scss
      |-- CharacterCard.scss
      |-- CharacterDetail.scss
      |-- Filters.scss
      |-- CharacterList.scss
  |-- App.js
  |-- index.js

Application Workflow

  • Fetching Data: Data is fetched from the Rick and Morty API using the Fetch API.
  • Rendering Characters: The character data is rendered in a list format.
  • Filtering: Users can filter characters based on name, status, planet of origin, and species. If there are no matches, an error message will appear. The reset button allows users to reset the filters to their original state and start to search from scratch.
  • Character Details: Clicking on a character displays detailed information about them. When the route does not match any characters, an error message is displayed that allows the user to navigate back to the home page. When navigating back to the search page, the search inputs are maintained so the user can continue browsing with the parameters they had already entered.

Application Screens

Main screen Screenshot 2024-05-24 at 09 21 25

Search results & no results screens Screenshot 2024-05-24 at 09 21 49 Screenshot 2024-05-24 at 09 22 44

Character detail & character not found Screenshot 2024-05-24 at 09 22 14 Screenshot 2024-05-24 at 09 22 31

Thank you and enjoy my app! Wubba Dubba Lub Lub

About

modulo-3-evaluacion-final-ellisoalgo created by GitHub Classroom

http://beta.adalab.es/modulo-3-evaluacion-final-ellisoalgo/


Languages

Language:JavaScript 58.3%Language:SCSS 40.0%Language:HTML 1.7%