From 3905395d758b02be3e03b1cbf99295b672424dbb Mon Sep 17 00:00:00 2001
From: Melony Franchini
Date: Mon, 23 Oct 2023 00:17:28 -0600
Subject: [PATCH 1/3] fix: typos in read me
---
README.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 84ae43f..8d62239 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,7 @@
The Missing Piece
- A puzzle exhange app to get local retirees swapping puzzles to keep their minds sharp & meet others without the pressure of attending an event!
+ A puzzle exchange app to get local retirees swapping puzzles to keep their minds sharp & meet others without the pressure of attending an event!
If you have a collection of puzzles and are eager for new challenges, you're in the right spot. Join our community of fellow puzzle enthusiasts and dive into a world of delightful exchanges. Happy Puzzle-ing!
@@ -63,7 +63,7 @@
**The Missing Piece** was created by an international team of both FrontEnd and BackEnd developers for the [Women Who Code (WWC) Hackathon for Social Good 2023](https://hopin.com/events/wwcode-hackathon-for-social-good/registration).
- The Women Who Code Hackathon for Social Good requires that every project aims to support a target group: The Missing Piece Team chose to to address is the emotional and mental wellbeing of retirees and seniors by creating an app to facilitate the sharing of items. For our MVP (minimum viable product) we chose to focus on one item type: puzzles.
+ The Women Who Code Hackathon for Social Good requires that every project aims to support a target group: The Missing Piece Team chose to address is the emotional and mental wellbeing of retirees and seniors by creating an app to facilitate the sharing of items. For our MVP (minimum viable product) we chose to focus on one item type: puzzles.
Why puzzles? Well, puzzles tend to accumulate over a lifetime and end up in boxes in the attic, never to be seen again. They're purchased, completed a few times, and then put away. A puzzle is a type of item that can be exchanged and returned over and over... plus it's fun to work on new ones without having to buy yet another puzzle!
@@ -76,7 +76,7 @@
- `Solution Statement`
The Missing Piece aims to connect retirees through a common interest with an easy, low-pressure opportunity to share puzzles with other locals. Not only will this app encourage them get out of the house in order to swap puzzles with others but could hopefully lead to building genuine friendships with people in their local neighborhood. Who knows, maybe they'll start puzzle-parties and work together too!
- On top of this, [studies](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5588550/) have shown that solving puzzles keep our minds sharp! It reduces the rate of cognitive decline and increases short-term memory, concentration, and visual-spatial reasoning. Plus, through the simple act of solving a little puzzle, improvements in mood and lower stress levels have been seen.
+ On top of this, [studies](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5588550/) have shown that solving puzzles keep our minds sharp! It reduces the rate of cognitive decline and increases short-term memory, concentration, and visual-spatial reasoning. Plus, through the simple act of solving a little puzzle, improvements in mood and lower stress-levels have been found.
With the Missing Piece app, users can search for puzzles in their local area. Then they can sign up or login to see their dashboard where they'll be able to upload their own collection of puzzles, see who's requested to borrow a puzzle, and track their own requests to borrow. Once an owner of a puzzle accepts the request, both user's email and phone number are provided so they can coordate when and where to exchange the puzzle. Once a puzzle has been returned, it is then ready to be borrowed again!
From 7e56bda243e9d14280e222e03d33e54d5e4d5f97 Mon Sep 17 00:00:00 2001
From: Melony Franchini
Date: Mon, 23 Oct 2023 00:48:15 -0600
Subject: [PATCH 2/3] chore: add FE url link
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 8d62239..dc99478 100644
--- a/README.md
+++ b/README.md
@@ -49,7 +49,7 @@
## About The Project
- 💜 [Production Website](link coming soon!)
+ 💜 [Production Website](https://the-missing-piece.vercel.app/)
💜 [Backend Service](https://intense-peak-28151.herokuapp.com/)
From e54814c6b9a427f6ccbe70b84a45ae8e7fa2779d Mon Sep 17 00:00:00 2001
From: Melony Franchini
Date: Mon, 23 Oct 2023 01:15:12 -0600
Subject: [PATCH 3/3] fix: fix login route
---
config/routes.rb | 2 +-
spec/requests/api/v1/sessions_request_spec.rb | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/config/routes.rb b/config/routes.rb
index a525af2..2c1bb40 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -8,7 +8,7 @@
# resources :users, only: [:show] #for ease of understanding, we will skip resoruces for now
put '/puzzles', to: 'puzzles#index'
- post '/users/:user_id/login', to: 'sessions#create'
+ post '/login', to: 'sessions#create'
delete '/users/:user_id/logout', to: 'sessions#destroy'
get '/users/:user_id', to: 'users#show'
diff --git a/spec/requests/api/v1/sessions_request_spec.rb b/spec/requests/api/v1/sessions_request_spec.rb
index 68a798c..02263cb 100644
--- a/spec/requests/api/v1/sessions_request_spec.rb
+++ b/spec/requests/api/v1/sessions_request_spec.rb
@@ -19,7 +19,7 @@
}
headers = { 'CONTENT_TYPE' => 'application/json' }
- post "/api/v1/users/#{user.id}/login", headers:, params: JSON.generate(login_data)
+ post "/api/v1/login", headers:, params: JSON.generate(login_data)
expect(response).to have_http_status(201)
expect(session[:user_id]).to eq(user.id)
@@ -43,7 +43,7 @@
}
headers = { 'CONTENT_TYPE' => 'application/json' }
- post "/api/v1/users/#{user.id}/login", headers:, params: JSON.generate(login_data)
+ post "/api/v1/login", headers:, params: JSON.generate(login_data)
expect(response).to have_http_status(401)
@@ -63,7 +63,7 @@
login_data = { email: user.email, password: user.password }
headers = { 'CONTENT_TYPE' => 'application/json' }
- post "/api/v1/users/#{user.id}/login", headers:, params: JSON.generate(login_data)
+ post "/api/v1/login", headers:, params: JSON.generate(login_data)
expect(response).to have_http_status(201)
expect(session[:user_id]).to eq(user.id)