Загрузка...

Lets Build Twitter From the Ground Up: Episode 300 || 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 expanded the post creation system to support posting directly into communities, bringing the platform closer to a fully contextual content experience.

On the backend, we updated the CreatePostDTO to include a Community field, allowing posts to be associated with a specific community. The PostService was then modified to detect when a post is tied to a community, fetch that community from the database, and append the new post to its collection before saving.

On the frontend, we extended the PostSliceV2 to track a selected community during post creation. This allows the UI to understand when a user is creating a community-specific post versus a general feed post. The post creation flow was updated so that when a post is successfully created, it conditionally dispatches an action to immediately update the selected community’s post list in Redux, ensuring the UI reflects the new post without requiring a refetch.

We also enhanced the FeedPostCreator component to support multiple contexts by introducing a location prop, enabling it to behave differently when used in the feed versus inside a modal. The UI dynamically adjusts based on whether a community is selected—switching from reply restrictions to community-specific sharing options.

Modal behavior was improved as well. The CreatePostModal now properly integrates with the updated creator component, and additional logic was introduced to reopen the modal after interacting with features like GIF selection. Supporting components such as the text area and dropdowns were updated to stay in sync with modal state changes.

Finally, we ensured the main feed and modal entry points correctly pass the appropriate context to the post creator, completing the integration.

This episode establishes the foundation for community-based content creation, enabling posts to live within specific communities while maintaining a seamless and responsive user experience.

Up to date assets zip for Logos, Images, etc: https://drive.google.com/drive/folders/1AVFdE3uq4GBeJYqZs8E9cCsuk_De8yaN?usp=sharing

~~~ How to gain access to the private Github Repository ~~~
Join the Silver Tier channel membership below and fill out the form
https://www.youtube.com/channel/UCOVeQepH1fCRgxeH6kuz7OQ/join

~~~ Live Streaming Schedule ~~~
Monday & Wednesday Morning: 5:00 AM - 7:00 AM CST
Friday & Saturday Evening: 11:00 PM - 1:00AM CST

~~~ Support the Channel by Joining as a Member ~~~
https://www.youtube.com/channel/UCOVeQepH1fCRgxeH6kuz7OQ/join

~~~ Stay Up To Date With My Social Media ~~~

Twitter: https://twitter.com/UnknownKoder
Twitch: https://www.twitch.tv/unknownkoderyt
Be sure to subscribe and turn on the bell notifications on youtube to not miss another episode of Lets Build Twitter: shorturl.at/gnxZ8

Feeling Generous? Donate to the stream to help cover equipment and upgrade costs at:
https://streamlabs.com/unknownkoder/tip

#JavaProgramming #SpringBoot #UnknownKoder

Видео Lets Build Twitter From the Ground Up: Episode 300 || Java, Spring Boot, PostgreSQL and React канала Unknown Koder
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять