GithubHelp home page GithubHelp logo

m0nae / petlook Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 4.76 MB

:dog: Browse through adoptable pets and find your next furry friend.

Home Page: http://petlook.monae.me

License: MIT License

JavaScript 6.79% HTML 2.23% CSS 1.56% TypeScript 89.42%

petlook's Introduction

๐Ÿถ PetLook ๐Ÿฑ


PetLook is a website built with React that allows users to search for and retrieve pet data using the PetFinder API.

๐Ÿ“ท Screenshots

Home page
Choose species page
Choose location page
Search page
404 Not Found page

๐Ÿ’ป Tech Used

  • React

  • React Router

  • Context API

    Why Context?The Context API seemed very fitting. This project isn't complex enough, in my opinion, to need *global* state management.

    Since searching makes up a solid 90% of the entire functionality of the website, I took the states having to do with the search functionality and threw it into a Context.

    Also, because I have quite a few pieces of state relating to searching, I decided to use the useReducer hook instead of multiple useState hooks. At first I did use multiple useStates, but things quickly got messy as the app grew.

  • Geolocation API

  • PetFinder API

  • Axios

  • React Testing Library/Jest

๐Ÿง  Future Features

  • Tweak the GeoLocation functionality
  • Add functionality to the search filters, where users can narrow their list of returned pets by criteria such as whether or not they're housebroken, if they get along with other pets/kids, etc
  • Add end-to-end tests with Cypress

๐Ÿ  Local Setup

Clone the repo, install all dependencies, and start the server:

clone http:this
cd client
npm install
npm start

# The project will load on localhost:3000

petlook's People

Contributors

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