evieeee123 / TripAide

0 stars 0 forks source link

Design Docs To-Do List #1

Open mwmadsen67 opened 2 years ago

mwmadsen67 commented 2 years ago

Wiki Page Home


MVP List


Database Schema


Sample State


Backend Routes


Frontend Routes

mwmadsen67 commented 2 years ago

Hi Evie, I made this issue for me to be able to track your progress on your design docs, and you have to be able to refer to this thread later if you have questions. Below I will leave some feedback on your current docs:

MVP List:

Schema:

Sample State:

Backend Routes:

Frontend Routes:

evieeee123 commented 2 years ago

Thanks, Mike. Based on your feedback, I updated my design docs, but I'm still confused about the schema and routes. Can you help me figure out when you have time?

Mike Madsen @.***> 于2022年7月7日周四 12:14写道:

Hi Evie, I made this issue for me to be able to track your progress on your design docs, and you have to be able to refer to this thread later if you have questions. Below I will leave some feedback on your current docs:

MVP List:

  • looks perfect, nice job!

Schema:

  • users looks good
  • there is an issue with the reviews table, having a do_id, stay_id, and eat_id that are all not null is not going to work. In order for your reviews to work for spots, hotels, and restaurants you will need to create polymorphic references. I would be happy to work with you in figuring it out. Otherwise, you would need to make three separate reviews tables (one for each table you are reviewing).
  • also I think some of the column names are too specific, rather than making a column of review_title you can just name it title
  • In your cities table, what is city_do, city_stay, and city_eat?
  • I dont think you need a photos table, you will use active storage to attach images

Sample State:

  • the formatting looks good
  • make sure not to have any underscores in your keys, since state is in javascript it should be camelCase
  • After making changes to your schema, make sure to update this page to reflect any of those changes

Backend Routes:

  • I'm not sure if you need a route for GET /api/users, this is either a user search or a user index, which is not necessary for trip advisor
  • I dont think you will need a route for GET /api/reviews, since reviews will get loaded by associations from a spot /hotel / restaurant show page
  • you are missing routes for spots, hotels, and restaurants

Frontend Routes:

  • looks good, but you'll need frontend routes for spot/hotel/restaurant show pages, for example: /restaurants/:restaurantId
  • you should also specify that something is a restaurant index or a restaurant show
  • this is a good chance to plan where your map component will go also

— Reply to this email directly, view it on GitHub https://github.com/evieeee123/mytrip/issues/1#issuecomment-1178106966, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWGXWOGWJSZOQQY2CVJEBATVS4UC3ANCNFSM52XCNV3A . You are receiving this because you are subscribed to this thread.Message ID: @.***>