filmov
tv
Lets Build Twitter From the Ground Up: Episode 70 || Java, Spring Boot, PostgreSQL and React

Показать описание
Building large scale application is more difficult than many people understand or expect. Join me in this long running series where I set out to duplicate one of the most popular social media platforms ever creating using Java, Spring Boot, Spring Security, PostgreSQL data, React JS web application framework and more.
In this episode, we focus on some refactoring of code we wrote in the previous episodes and fixing bugs that were introduced in previous episodes. We start out in the UserService refactoring the setProfileOrBannerPicture to remove any existing custom images the user uploaded for a banner or profile before uploading their new profile picture. This is because the user will only ever have one profile or banner picture at a time and we don’t need to hold onto those old ones. After this, we stay inside of the UserService to fix the issue of users being able to follow themselves, if a user attempts to follow themselves we threw a new exception type and handled it with a new custom exception handler in the UserController class. And we wrapped up the episode fixing the configuration to allow users to view who others are following without having to be logged in.
~~~ Stay Up To Date With My Social Media ~~~
~~~ Background Music Used In My Video ~~~
🎵 Song: 'Sappheiros - Embrace' is under a creative commons license license.
🎶 Music promoted by BreakingCopyright:
🎵 Song: 'Danlsan - Free With You' is free to use if you give credits.
🎶 Music promoted by BreakingCopyright:
🎵 Song: 'Insomnia - Sarah Jansen' is free to use on social media as long as credits are included
🎶 Music promoted by BreakingCopyright:
#JavaProgramming #SpringBoot #UnknownKoder
In this episode, we focus on some refactoring of code we wrote in the previous episodes and fixing bugs that were introduced in previous episodes. We start out in the UserService refactoring the setProfileOrBannerPicture to remove any existing custom images the user uploaded for a banner or profile before uploading their new profile picture. This is because the user will only ever have one profile or banner picture at a time and we don’t need to hold onto those old ones. After this, we stay inside of the UserService to fix the issue of users being able to follow themselves, if a user attempts to follow themselves we threw a new exception type and handled it with a new custom exception handler in the UserController class. And we wrapped up the episode fixing the configuration to allow users to view who others are following without having to be logged in.
~~~ Stay Up To Date With My Social Media ~~~
~~~ Background Music Used In My Video ~~~
🎵 Song: 'Sappheiros - Embrace' is under a creative commons license license.
🎶 Music promoted by BreakingCopyright:
🎵 Song: 'Danlsan - Free With You' is free to use if you give credits.
🎶 Music promoted by BreakingCopyright:
🎵 Song: 'Insomnia - Sarah Jansen' is free to use on social media as long as credits are included
🎶 Music promoted by BreakingCopyright:
#JavaProgramming #SpringBoot #UnknownKoder