Skip to content

FetchingFriends/fetching-friends-backend

Repository files navigation

Fetching Friends

Jump To

About

Fetching Friends is an application designed to help you find your next pet! Future pet parents have the ability to search through the available pets based on certain criteria you are looking for. Once a desired pet is found, you can submit an application straight to the owner to apply for your furry friend. This application also caters towards the needs of someone who has a pet to offer for adoption by giving them a platform to post their animals.

This repo is holds the back-end for Fetching Friends and is consumed by our front-end. The front-end repo can be found here.

Fetching Friends Back-end Heroku | Fetching Friends Front-end Heroku

Getting Started

These instructions will give you a copy of the project up and running on your local machine for development and testing purposes.

Setup

Version Requirements

  • ruby 2.5.3
  • rails 5.2
  1. Clone this repo:

    $ git clone git@github.com:FetchingFriends/fetching-friends-backend.git
    
  2. cd into fetching-friends-backend

  3. Run bundle install

  4. Run rails db:{create,migrate,seed}

Running the tests

To check out our in-depth test suite, run:

$ bundle exec rspec 

Database Schema

alt_text

Endpoint Documentation

HTTP verbs Paths Used for Output
GET /api/v1/pets?type=dog Get all pets of a given type json
GET /api/v1/user/:id/pets Get all pets belonging to a user json
GET /api/v1/users/:user_id Get a user, and users pets, favorited pets, and applications json
POST /api/v1/users Create a new user json
POST /api/v1/pets Create a new pet json
DELETE /api/v1/pets/:pet_id Delete a pet details
DELETE /api/v1/application/:application_id Delete an application details
PUT /api/v1/application/:application_id Update an application json
PUT /api/v1/pet/:pet_id Update a pet json

Authors

Backend Team

Frontend Team

See also the list of contributors

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors