Git Product home page Git Product logo

biswajitmojumder / shoutbox Goto Github PK

View Code? Open in Web Editor NEW

This project forked from unnatijadhav/shoutbox

0.0 0.0 0.0 3.2 MB

ShoutBox is a like a social networking website where users can post comments, share photographs, videos and audios. The main objective of this system is to create a dynamic web application where USER can : Login and register , Post shouts which includes uploading text, photos, videos and audios , See friends shouts and own shouts , Comment on his own shouts as well as his friends shouts , Report friends shouts , See pending list of requests which are not yet confirmed , Send friend request, accept or reject friend requests , Unfriend already made friend . ADMIN functionality : Approve new users , Delete or view all approved users , View shouts of approved users , Delete reported shouts .We used Spring Boot Framework, SCSS, Bootstrap 4, HTML 5, Angular 7 and MySQL to design ShoutBox.

JavaScript 0.62% TypeScript 24.00% HTML 18.11% CSS 1.89% Java 55.38%

shoutbox's Introduction

ShoutBox

ShoutBox is a like a social networking website where users can post comments, share photographs, videos and audios. The main objective of this system is to create a dynamic web application where USER can : Login and register , Post shouts which includes uploading text, photos, videos and audios , See friends shouts and own shouts , Comment on his own shouts as well as his friends shouts , Report friends shouts , See pending list of requests which are not yet confirmed , Send friend request, accept or reject friend requests , Unfriend already made friend . ADMIN functionality : Approve new users , Delete or view all approved users , View shouts of approved users , Delete reported shouts
We used Spring Boot Framework, SCSS, Bootstrap 4, HTML 5, Angular 7 and MySQL to design ShoutBox.

INSERT THE FOLLOWING STORED PROCEDURES IN DATABASE :

  1. PROC_FRIEND_REQUEST_ACCEPT_REJECTED

CREATE PROCEDURE PROC_FRIEND_REQUEST_ACCEPT_REJECTED(IN sentFlag varchar(20),IN pendingFlag varchar(20), IN currentUserId int, IN currentFriendId int)

BEGIN

	declare rowsAffected int;

	select count(*) into @countVal from user_friends where (friend=currentUserId and friend_owner=currentFriendId) or (friend_owner=currentUserId or friend=currentFriendId);

	if(@countVal=2) then
	
		update user_friends set flag=sentFlag where friend_owner= currentFriendId and friend=currentUserId;
    
		update user_friends set flag=pendingFlag where friend= currentFriendId and friend_owner=currentUserId;

	else    
	
		insert into user_friends(flag,friend_owner,friend) values(pendingFlag,currentUserId,currentFriendId);
	
		insert into user_friends(flag,friend_owner,friend) values(sentFlag,currentFriendId,currentUserId);

	END IF;

END
  1. PROC_REJECT_APPROVED_FRIENDS

CREATE PROCEDURE PROC_REJECT_APPROVED_FRIENDS(IN flag varchar(20), IN currentUserId int, IN currentFriendId int)

BEGIN

	update user_friends set flag=flag where friend_owner=currentFriendId and friend=currentUserId;

	update user_friends set flag=flag where friend_owner=currentUserId and friend=currentFriendId;

END

shoutbox's People

Contributors

unnatijadhav avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.