Open humayuntariq98 opened 1 year ago
I think these are definitely good stretch goals to take on moving forward! You also have a good foundation for refactoring to star icons. Removing existing reviews would take priority as this functionality would be expected/beneficial to user experience. But overall, your application is functional with required basic CRUD. Keep us posted on this! Would love to see the outcome! 💯
Instructional Grow: Build upon current CSS - landing page feels a bit empty, centering and spacing. I wonder what other APIs can compliment this app! Can currently delete anyone’s post! Sharp or rounded border edges - perhaps stick to one?
Grow 1- Making sure that when the destination gets updated, the already existing reviews are removed. So if Paris was changed to Turin, the reviews that were there for Paris should be removed.
async function update(req, res) { try { const destinationData = { ...req.body }; const editedDestination = await Destination.findById(req.params.id); editedDestination.name = destinationData.name; editedDestination.favoriteSpots = destinationData.favoriteSpots; editedDestination.budget = destinationData.budget;
}
Grow 2- Changing the number rating system to Star icons
<form action ....
Add a Review