gfsd3v / cat-breed-search

React CRUD using the cat API

Home Page:https://hostgatos.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cat breed search

For this challenge I did a fully responsive web app where the user can search for cat breeds using thecatapi.com and pagination, click here to see the app in production enviroment.

Challenge layout requirement

image

Core files

Most of the data logic lies within the following files:

Extras tried to accomplish

  • Mobile-friendly/Responsive: The app is fully responsive for any device.
  • Newest features of ECMAScript: I used modern JS practices, using only functional components, hooks and the ES6 features that makes the code more concise and readable.

Scripts

In the project root dir we have the following scripts:

yarn install / npm install

First is mandatory to run this script before any other, this will install all the project dependencies.

yarn start / npm start

Runs the developer server in http://localhost:3000.

yarn build / npm build

Builds the app bundle in production enviroment, ready do be deployed.

Improvement ideas

  • Security: The .env file should be listed in the .gitignore, but I didn't do it because the .env is a mandatory file for running the app in dev mode, if it was a production app the api key would be in the .env file.

Stack

About

React CRUD using the cat API

https://hostgatos.netlify.app/


Languages

Language:JavaScript 93.3%Language:HTML 6.7%Language:Shell 0.1%