Add Friends To Database | MySQL | Part 1



Add Friends To Database | MySQL | Part 1

Add Friends To Database | MySQL | Part 1

In this tutorial, I’ll show you how to add friends to a MySQL database. This will allow a user to follow other users. We will then save that relationship in the database. Then, a user would be able to see posts from any of the users that they’re following.

This video is part 1, where we’ll grab all the usernames that the user is not already friends with. We’ll display that list on the frontend, so the user can select who they’d like to follow (who they’d like to add as a friend).

This is a continuation of our MusicTalk app. An app like Facebook, but people talk about music.

🎥 Previous videos include:
Create Node/Express and React App: https://youtu.be/dICDmbgGFdE
How To Create A Database: https://youtu.be/wba73az4-R0
Connecting Our App To Database: https://youtu.be/syA6vUaZtOM
Using React Router v6: https://youtu.be/GC1LcEwTtZo
Using Redux Toolkit (w/ Redux Thunk!): https://youtu.be/x4H3HYPx3yQ

🔗 Affiliate links to some of my gear 🤘🙏❤️
(Best quality for the best price from my research)
Maono Microphone: https://amzn.to/3Wv3ah0
Logitech Webcam: https://amzn.to/3qb0p8M
Rival Mouse: https://amzn.to/3MUtezd
Wrist Pads: https://amzn.to/421vQQ4