Forem

Cover image for Develope a twitter clone with ReactJS
Linh Truong Cong Hong
Linh Truong Cong Hong

Posted on

13 5

Develope a twitter clone with ReactJS

I have developed a small social network web app for educational purpose and want to share this with the community. This app is built with ReactJS for frontend, Java Spring Boot for backend and MongoDB as the database.

The app tries to mimic a few functions of Twitter, including:

  • Create post with text and image
  • The number of characters in each post is limited to 200 characters
  • Like, comment and re-post a post
  • View the number of likes, comments and shares of a post
  • Comments are toggle
  • The number of character in each comment is limited to 100 characters
  • Follow, un-follow someone
  • See who are following us and follow them back
  • Check who we are following
  • View all posts of an individual
  • View our own posts
  • List all user accounts in the entire social network (due to the number of users are still small, I did not develop search user function)

Other functions:

  • Due to limited storage space, client app compresses the uploaded image to the maximum of 250px (width or height) User avatar is created by hashing user id and convert that hash code into a hexagonal image
  • Authentication and authorization use JWT
  • Responsive frontend for desktop and mobile devices

Technical stack:

  • Frontend: ReactJS, Redux Toolkit, React Router, React Bootstrap
  • Backend: Java Spring Boot
  • Database: MongoDB

Hope you enjoy it and give me a ⭐ Github star ⭐ for my effort!

Live Demo and Source Code:

https://github.com/linhtch90/psn-social-network-public-source

Top comments (1)

Collapse
 
8bitsouvik profile image
Souvik Mandal

Really a great project!

I also have built a social media clone, although the image uploading feature hasn't be activated..
Here it's hosted on heroku--
wetalk021.herokuapp.com/

And source code--
github.com/8-bit-souvik/weTalk

Check it out!

👋 Kindness is contagious

Explore a trove of insights in this engaging article, celebrated within our welcoming DEV Community. Developers from every background are invited to join and enhance our shared wisdom.

A genuine "thank you" can truly uplift someone’s day. Feel free to express your gratitude in the comments below!

On DEV, our collective exchange of knowledge lightens the road ahead and strengthens our community bonds. Found something valuable here? A small thank you to the author can make a big difference.

Okay