GithubHelp home page GithubHelp logo

silviaespanagil / rick-and-morty-directory Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 0.0 4.55 MB

Rick and Morty directory developed using React feeded by an API. Search and read about your favorite characters

Home Page: https://silviaespanagil.github.io/rick-and-morty-directory/

HTML 4.25% JavaScript 66.30% CSS 0.01% SCSS 29.44%
react javascript frontend front-end-development sass rickandmortyapi rick-and-morty directory

rick-and-morty-directory's Introduction

React app: Rick and Morty Directory

“Wubba Lubba Dub Dub!”

¡Hola mundo!

What a journey! Looks like now I can create some awesome interactive web apps using React✨. This is my new React App where you can search and read some information about some Rick and Morty characters.

Initial Requirements 📋

  • Create a react app.
  • The app must fetch from an API.
  • Render the characters information on the home page. Required information is: Picture, name and specie.
  • Add a filter that allows the user to search by name any character.
  • There are four mandatory components: Filters, CharacterList, CharacterCard and CharacterDetail.
  • If the user clicks on any character card, a new route must be created that shows the clicked character detail. Detail must show previous information plus origin planet and episodes.

Quality Requirements 🌟

  • Semantic must be right.
  • When the user filters if it press the enter key nothing must happen.
  • If the user search an unexistant character we must give a feedback.
  • The filter must work either if the user writes with caps on or not.
  • When in the character detail if the user wants to go back to the home page the search input value must remain.

Extra features 🔥

  • Add some styles (I apologize on advance, the girl is a developer but not a designer😬).
  • Use grid for the character list.
  • Make it responsive.
  • Show icons for status and specie.
  • The character URL must be shareable.
  • If we refresh the browser, character information must be kept.
  • If the user goes to unexistant pages we must give a proper feedback.
  • Order the character list alphabetically.
  • Add an extra filter to search by specie.

My own extra features 👩‍🎤

  • Add a reset button that resets the filters values

Built with 🔨

  • Visual Code Studio: as code editor
  • SASS
  • React

Development ⌨️

This time I did a little flowchart of my user behavior just to keep on track of the big picture, if you want to take a look of it click here (btw it's in Spanish). After it I started the coding.

The process went a little bit like this: I went in for the fetch, cleaned it and imported it to my App and then I created my CharacterCard with the fetched information. Then I created my CharacterList that renders the CharacterCards. Afterwards I coded my searchBox and LocalStorage because we want all this to be kept.

With the creation of my LocalStorage I also changed my fetch because if it's there we don't need to call it back, right?.

Next step was the CharacterDetail and creating all the routes to go to the detail, and go back to the home page. Here I also created my "error" pages and this is so fun because with the creative liberty I had some fun. I decided to do two components: one for an unexistant page, and another one for an unexistant search.

With this I had my mandatory features. For the bonus I added a new component for a second filter and a "Filters" component that houses both of my filters. I also did two extra components for the cards icons that looks for the information and render the correspondent icon.

For my styles I installed SASS and using BEM tried to make it look cute and from another galaxy.

Want to clone my repository? 🐑🐑

Go for it! And if you make something pretty, please show me

Do you have any idea? ✏️

I'm an student and as I stated before am learning a whole lot of Front End Developing, so, if you have any idea that I could develope please tell me so and I will try to.

License

MIT

Codefactor

CodeFactor

rick-and-morty-directory's People

Contributors

silviaespanagil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

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