Does your dog seem bored? Are you curious about any dog park meet ups or social events near you? Puppy Playdate is designed to meet the need for dog socialization, allowing users to connect with nearby dogs for playdates, ensuring their pets enjoy regular and enriching social interactions. The app uses geolocation so you can peak at a map and see just how close your dogs new best friend might be. You can host a doggy meet up, receive invites to them, schedule a 1 on 1 meet up and more.
- Insert link to deployment here.
These instructions will give you a copy of the project up and running on your local machine for development and testing purposes.
This project uses Ruby version 3.2.2.
Change directories into the project:
cd /puppy_playdate_be
Install all gems:
bundle install
To initialize the database, run the following commands:
rails db:{drop,create,migrate,seed}
To run the test suite, execute the following command:
bundle exec rspec
To run the server, execute the following command:
rails s
IMPORTANT: In order to make the Front End tests pass, you must run the backend server in the background.
In terminal (bash or zsh):
git clone [email protected]:Puppy-Playdate/puppy_playdate_fe.git
git clone [email protected]:Puppy-Playdate/puppy_playdate_be.git
cd puppy_playdate_be
Open up a second terminal:
cd puppy_playdate_fe
In both terminals:
-
bundle install
-
rails s
- The backend runs on 'http://localhost:3000/'
- The frontend runs on 'http://localhost:5000/'
- Faraday gem to interact with APIs
- bcrypt
gem "bcrypt", "~> 3.1.7"
- JSONAPI Serializer gem for formatting JSON responses
- rspec-rails gem that is backbone of our testing architecture
- factory_bot gem to create models for testing data
- Faker gem to mock and stub test data
- SimpleCov gem for code coverage tracking
- ShouldaMatchers gem for testing assertions
- Capybara gem for end to end testing
- Pry gem for debugging
bundle exec rspec
All tests should be passing.
Utilize "http://localhost:3000/"
to access ALL endpoints.
For endpoint data please consult the spec/resquest files to see our mocked data.
User CRUD
-
Users Index
- GET
api/v1/users
- GET
-
User Show
- GET
api/v1/users/:id
- GET
-
User Create
- POST
api/v1/users
- POST
-
User Update
- PATCH
api/v1/users/:id
- PUT
api/v1/users/:id
- PATCH
-
User Destroy
- DELETE
api/v1/users/:id
- DELETE
Dogs CRUD
-
Dogs Index
- GET
api/v1/users/:user_id/dogs
- GET
-
Dog Show
- GET
api/v1/users/:user_id/dogs/:id
- GET
-
Dog Create
- POST
/api/v1/users/:user_id/dogs
- POST
-
Dog Update
- PATCH
api/v1/users/:user_id/dogs/:id
- PUT
api/v1/users/:user_id/dogs/:id
- PATCH
-
Dog Destroy
- DELETE
api/v1/users/:user_id/dogs/:id
- DELETE
Socials CRUD
-
Socials Index
- GET
api/v1/users/:user_id/socials
- GET
-
Socials Show
- GET
/api/v1/users/:user_id/socials/:id
- GET
-
Socials Create
- POST
/api/v1/users/:user_id/socials
- POST
-
Socials Update
- PATCH
/api/v1/users/:user_id/socials/:id
- PUT
/api/v1/users/:user_id/socials/:id
- PATCH
-
Socials Destroy
- DELETE
/api/v1/users/:user_id/socials/:id
- DELETE
-
Tommy Takahashi
-
Miranda Delaney
-
Eric Belongea
-
Blake Sergesketter
-
Justin Lee