Online Social Media Project in Spring Boot And Hibernate With Source Code

Online Social Media Project in Spring Boot, Hibernate, and MYSQL. This project is available with source code for 2nd/3rd/final year IT students for their college projects.

Online Social Media Project Overview

It is a multi-role application project i.e. single Admin and multiple User, where Admin will have the main control over the system.

This is a web application developed for users who can socialize with each other virtually. Here, we have two main roles i.e. Admin and Users. Users can make friends, can post their favorite videos and images, etc. This Project has all the necessary functionality from adding, deleting comments, friends, etc. It is developed to support all roles, whether it is admin or user.

Admin will be responsible for maintaining the system and also, keeping a check on the Users and management of the system. On the other hand, Users can register themselves, log in using the login credentials, and create/manage accounts.

The overall project is designed using the MVC pattern (MVC i.e. Model, View, and Controller). In the Backend, it is using Spring Boot, at the data access layer the project is using Hibernate Framework, and at the frontend, we are using HTML, CSS, and Bootstrap. The Database used here is MYSQL.

Online Social Media Project Abstract

As we know, social media platform helps people to build social relationships between people. Anybody can be friends with anyone around the world. Today on any social media there are lots of users interacting on daily basis, sharing knowledge, sharing interests, etc. With the constant use of the Internet, users spend hours browsing e-commerce sites, reading, and entertainment and sharing and expressing their opinions and sentiments in the form of comments, and social posts on social networks about diverse topics.

So, Codebun has developed an Online Social Media Project in spring boot and hibernate, where we will have users connecting with different users and sharing their content. Here, we have two main roles in this application i.e. Admin and User. One is the user who will post videos, photos, content, and so on. Admin is the other user who will have the responsibility to manage all the users and the system.

Admin is the primary user. Admin can add/remove/update any details related to the system, View/Confirm/Cancel registration by users, manage users and view their details, and so on. Admin can keep all the records of the Users.

Users can register themselves on the portal and create accounts using names, email IDs, mention of age, and upload images. Users can log in/log out of the system. Users can upload & share comments, posts, and images on their profiles. Users can Accept/Reject friend requests sent by other users. Users can send friend requests to other users. Once the friend request is accepted, the Users can view/like/comment on posts shared by other users.

The following are the major objective of this application:

  1. To provide a bug-free application to the admin as well as the users.
  2. The main objective is to build a secured, robust Online Social Media Project.
  3. It maintains the record of users, and their daily activity detail efficiently so that it would be easy to access at any time 24*7.

Modules in Social media System

Admin Module: This module will allow Admin to log in to the system and manage the system and its functions. Can Add/Remove/Update any details related to the system. View/Confirm/Cancel registration by users, Admin can manage users, view their details, history, etc.

User Module- All the user-related operations are performed in this module. Registered users can sign in/out. Users can upload & share comments, posts, and images on their profiles. Users can Accept/Reject friend requests sent by other users. Users can send friend requests to other users. Once the friend request is accepted, the User can view/like/comment on posts shared by other users.

Registration Module- New Users can register on the portal with the help of this module.

User Roles of Online Social Media Project

There are two main users of this application.


  • Can Log in/Log out of the system.
  • Admin can manage users
  • Admin View/Confirm/Cancel registration by users.
  • Can view user’s details, profile, and history.
  • Can maintain a record of users.
  • Can change password.
  • Can manage “My Profiles”.


  • Can log in/log out of the system.
  • Can upload posts, comments, and images.
  • Can Edit/Remove posts, comments, and images.
  • Users can Accept/Reject/Send friend requests.
  • Can Manage “My profile”.
  • Can change password.

Flow Diagram of Online Social Media System


Tools and Technologies Used

Front-End: JSP, Html, CSS, JS.
Server-side: Spring Boot.
Back-end: MYSQL, Hibernate.
Server: Tomcat 8.5.

Contact to get the Source Code

Skype Id: jcodebun

Note: If you need the source code you can contact Us. We will provide complete source code and all the required things like Database and project reports with all the diagrams. Also, we have created a STEP by STEP configuration tutorial to help you in the configuration process.

If you find any kind of difficulties during the configuration, we will provide a complete project configuration guide remotely using any Desk or Zoom.