Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Whiskr/whiskr

A Tinder-like progressive web application for pairing local adoptable pets with potential owners
https://github.com/Whiskr/whiskr

petfinder progressive-web-app react-redux tinder-clone

Last synced: 2 months ago
JSON representation

A Tinder-like progressive web application for pairing local adoptable pets with potential owners

Awesome Lists containing this project

README

        

# Whiskr

### Tinder styled pet adoption web app

### Description:
This is a tinder styled app that makes pet adoption an easier process. Using real pets from the PETFINDER API, you can swipe left or right on pets you might potentially want to adopt. However, since pets cannot swipe back, a shelter will check to see if you are the right fit.

[https://whiskrapp.herokuapp.com](https://whiskrapp.herokuapp.com)

## Developers:
* Shelby Rackley
* Shannon Kendall
* Shiratie Prodhan
* Keri Miller

---
## For Developers:

### Secrets Setup
#### required API keys
* [PetFinder](https://www.petfinder.com/developers/api-docs)
* [Google Maps GeoLocator](https://developers.google.com/maps/documentation/geolocation/get-api-key)
* [Google API OAuth](https://console.developers.google.com/)
* [Facebook OAuth](https://developers.facebook.com/)

At the root folder touch `secrets.js`

#### `Secrets.js`

```
// petfinder API_SECRET
const API_SECRET = 'YOUR_SECRET_KEY';

// google geoLocator API_SECRET
const GOOGLE_GEO_API_KEY = 'YOUR_SECRET_KEY';

// google API_SECRET for OAuth
process.env.GOOGLE_CLIENT_ID = ''YOUR_SECRET_KEY''
process.env.GOOGLE_CLIENT_SECRET = 'YOUR_SECRET_KEY'
process.env.GOOGLE_CALLBACK = '/auth/google/callback'

// facebook API_SECRET
process.env.FACEBOOK_APP_ID = 'YOUR_SECRET_KEY'
process.env.FACEBOOK_APP_SECRET = 'YOUR_SECRET_KEY'
process.env.FACEBOOK_CALLBACK = '/auth/facebook/callback'

module.exports = {
API_SECRET: API_SECRET,
GOOGLE_GEO_API_KEY: GOOGLE_GEO_API_KEY
};

```

### Install yarn and if you don't have it already
`npm install yarn`

### Sync the two package.json files
Our project has two package.json files, one on the client side and one on the server side.

we use [concurrently](https://www.npmjs.com/package/concurrently) to run these at the same time.

\*\*_If you don't already have concurrently globally installed on your machine you can run `yarn install` first to install the server side npm modules. Then you can `yarn sync` normally._

Use `yarn sync` to install the packages simultaneously

### Create and Seed the database
In your terminal, create the database with the command `createdb whiskr`

Next, seed the database with `yarn seed`

### Run the app
After you install the packages, run `yarn dev` to start up the app and navigate to `localhost:3000`

## Using the App
To use the app, either login or sign up. You can also use one of our seeded users. Our favorite is:
```
Email: [email protected]
Password: catscatscats

```
From there, you will be redirected to the PetTypes page. Choose the type of pet you'd like to adopt. The categories are: cats, dogs, reptiles, barnyard, horse, small and furry, rabbit, birds.

Swipe left to dismiss a pet and swipe right to add it to your matches.

On mobile view, you can click the pet card to expand the profile.