Lpu Final Year CSE Project Example
Lpu Final Year CSE Project Example
Lpu Final Year CSE Project Example
VIRAL VALUES
VIRAL CONTENT MANAGEMENT SYSTEM WITH
AUTOMATED PAYROLL
Submitted by
Alisha Thakkar
Akshi Mahajan
Amit Yadav
Anish Victor
Gauri Mathur
Assistant Professor
School of Computer Science and Engineering
CONTACT
NUMBER
9501145445
9050173734
7696178878
7696594523
8968192312
PROPOSED TOPIC :Website and android application for viral content management.
Qualitative Assessment of Proposed Topic by PAC
Sr.No. Parameter
1
2
4
5
6
Rating (out
of 10)
7.00
UID:
Recommended (Y/N): Yes
11361
PAC Member 2 Name: Janpreet Singh UID:
Recommended (Y/N): NA
11266
PAC Member 3 Name: Harjeet Kaur
UID:
Recommended (Y/N): Yes
12427
PAC Member 4 Name: Dr. Ramandeep UID:
Recommended (Y/N): NA
Singh
14105
PAC Member 5 Name: Sawal Tandon UID:
Recommended (Y/N): Yes
14770
DAA Nominee Name: Kanwar Preet
UID:
Recommended (Y/N): Yes
Singh Topic Approved by PAC:
15367and android application
Final
Website
for viral content management. Overall Remarks: Approved
II
7.25
7.25
6.75
6.25
6.75
DECLARATION
We hereby declare that the project work entitled Viral Values is an authentic record of our
own work carried out as requirements of Capstone Project for the award of B.Tech degree in
Computer Science and Engineering from Lovely Professional University, Phagwara under the
guidance of Gauri Mathur during January to May 2016. All the information furnished in this
capstone project report is based on our own intensive work and is genuine.
Project Group Number: CSERGC0016
Signature of Student 1
Date:
Signature of Student 2
Date:
Signature of Student 3
Date:
Signature of Student 4
Date:
IV
CERTIFICATE
This is to certify that the declaration statement made by this group of students is correct to the
best of my knowledge and belief. They have completed this Capstone Project under my
guidance and supervision. The present work is the result of their original investigation, effort
and study. No part of the work has ever been submitted for any other degree at any University.
The Capstone Project is fit for the submission and partial fulfillment of the conditions for the
award of B. Tech degree in Computer Science Engineering from Lovely Professional
University, Phagwara.
ACKNOWLEDGEMENT
We humbly take this opportunity to present our votes of thanks to all those guidepost who
really acted as lightening pillars to enlighten our way throughout this project that has led
to successful and satisfactory completion of this study.
We are really grateful to our HOS Mr. Rajeev Sobti and our mentor Gauri Mathur for
providing us with an opportunity to undertake this project in this university and providing
us with all the bright and innovative ideas for making our project a really worthwhile of
running in an organization. We are highly thankful for his active support, valuable time
and advice, whole-hearted guidance, sincere cooperation and pains-taking involvement
during the study and in completing the capstone project within the time stipulated.
We are thankful to all those, particularly our friends , who have been instrumental in
creating proper, healthy and conductive environment and including new and fresh
innovative ideas for us during the project, without their help, it would have been extremely
difficult for us to prepare the project in a time bound framework.
Alisha Thakkar
Akshi Mahajan
Amit Yadav
Anish Victor
TABLE OF CONTENTS
1. INTRODUCTION 1
2. PROFILE OF THE PROBLEM. ..2
3. EXISTING SYSTEM ...3
3.1 INTRODUCTION .3
3.2 EXISTING SOFTWARE ..3
3.3 DFD FOR PRESENT SYSTEM ...3
3.4 WHATS NEW IN THE SYSTEM TO BE DEVELOPED ..4
4. PROBLEM ANALYSIS 5
4.1 PRODUCT DEFINITION5
4.2 FEASIBILITY ANALYSIS.6
4.3 PROJECT PLAN .6
5. SOFTWARE REQUIREMENT ANALYSIS 8
5.1 INTRODUCTION 8
5.2 GENERAL DESCRIPTION .9
5.3 SPECIFIC REQUIREMENTS ....11
6. DESIGN..13
6.1 SYSTEM DESIGN...13
6.2 DESIGN NOTATIONS....14
6.3 DETAILED DESIGN...15
6.4 FLOWCHART.17
7. TESTING....19
7.1 FUNCTIONAL TESTING...20
7.2 STRUCTURAL TESTING.......21
7.3 LEVELS OF TESTING........21
7.4 TESTING THE PROJECT.......22
8. IMPLEMENTATION.24
8.1 IMPLEMENTATION OF THE PROJECT..24
8.2 POST-IMPLEMENTATION AND SOFTWARE MAINTENANCE.25
9. PROJECT LEGACY26
9.1 CURRENT STATUS OF THE PROJECT.26
9.2 REMAINING AREAS OF CONCERN..26
9.3 TECHNICAL AND MANAGERIAL LESSONS LEARNT..26
10. USER MANUAL.27
11. SOURCE CODE..43
12. BIBLIOGRAPHY52
1. INTRODUCTION
A Content Management system is a computer system or application that promotes and
assists the making and modification of digital content. A shared user interface is generally
used, which results in several users functioning together in a very cooperative environment.
The user interface used is so simple that even people with little knowledge about digital
content can add, modify and publish their content on the website.
Viral Content is any content like news, articles, discussions, stories or videos that spread
rapidly on internet and have the potential to make more and more people view it. A viral
content management site therefore only consist of the viral content related to current affairs
and the interest of the audience. So a lot depends upon the kind of public you are targeting.
These days the amount of viral content management websites are increasing rapidly, reason
being the amount of money or revenue that is generated in viral industry. A large amount
of money is generated by the means of advertisements and sponsored posts. However, the
quality of the content is being given less attention.
Viral Content will be unthinkable without viral giants like Viral Nova, Upworthy and
ScoopWhoop in India.
Viral values is a content management website and android application with automated
payroll system. Any freelancer writer can write an article or can post a video and for this
they will get paid based on revenue generated by their articles. Our payroll system works
on google analytics API3. From google analytic, we fetch the earnings and page views of
every article and based on AdSense earning per article, 90% out of which is given to the
writer
3. EXISTING SYSTEM
3.1. Introduction
Well, till now no website is using this concept but many website are there which are
accepting freelancer writers post and pay them some fix amount of payment. And 5 years
ago, if an entrepreneur thought about the writer, they failed because they got no idea about
blackhat world. Their algorithm were not strong so they cant filter the spam traffic.
3.2 Existing Software
There is no any exact system existing but one website www.bubblews.com had the same
vision to pay to writers. They are paying story writers based on page view on article. This
website became very much popular in late 2013. But after this many people started using
fake traffic to increase page view and bubblews traffic filter algorithm was unable to
identify the fake traffic so due to this after three years the company was shut down.
3.3 DFD for present system
4. PROBLEM ANALYSIS
First we need to ensure that is the monetizing technique we are using is really
worthy or not . How we get fetch data for it . We tested google test API to ensure
that its actually works
While user is requesting for any page to access from server then server must be
reply to user asap
Payout to users: This is monthly manual operational job to transfer the amount
the all eligible user in their bank account.
Website backup: this is very important to back up the website because there
6
could be a change to lost the data due to any hardware and software failure.
Changing the design on regular basis: Website structure and content two main
things that attract the visitor. We need to focus to make site more user friendly.
Requirement analysis
TASK
START FROM
NO.OF DAYS
END AT
Requirement analysis
01/02/2016
14
14/02/2016
Implementation
TASK
START FROM
NO.OF DAYS
END AT
Testing
TASK
START FROM
NO.OF DAYS
END AT
10
Hardware requirements:
Number
Description
PC with 2 GB hard-disk
and 256 MB RAM
Table 5.1
11
Software requirements:
Number
Description
Windows XP or Higher
MySQL
Notepad++
WordPress
Magic Draw
Table 5.2
12
6. DESIGN
6.1. System design
It is the procedure of describing the construction, components, modules, interfaces, and
data for a system to satisfy specified requirements. One could understand it as the
solicitation of systems theory to product development. There is nearly join with the
disciplines of systems analysis, systems architecture and systems engineering.
.
Use Case Diagram
13
Class Diagram
14
15
16
6.4 Flowcharts
17
Figure 6.6 : Flowchart explaining general mechanism of what an content writer or author
would do
18
7. TESTING
7.1. Introduction
The software engineering process can be viewed as a spiral. Initially system engineering
describes the role of software and leads to software requirement analysis where the
information domain, functions, behaviour, performance, constraints and validation criteria
for software are established. Moving inside along the spiral, we come to design and finally
to coding. To develop computer software we spiral in along rationalizes that reduce the
level of abstraction on each turn.
A plan for software testing may also be seen in the context of the spiral. Unit testing
initiates at the vertex of the spiral and focusses on each unit of the software as implemented
in source code. Testing growths by moving outward along the spiral to integration testing,
where the concentration is on the design and the construction of the software architecture.
Talking another turn on outward on the spiral we come across validation testing where
requirements established as part of software requirements analysis are validated against the
software that has been constructed. Finally we come to at system testing, where the
software and other system elements are tested as a whole.
19
Missing functions
Usability problems
Performance problems
20
White-box testing (also known as clear box testing, glass box testing, transparent box
testing, and structural testing) is a method of testing software that tests core structures or
workings of an application, as opposed to its functionality (i.e. black-box testing). In whitebox testing an internal observation of the system, as well as programming skills, are used
to design test cases. The tester chooses inputs to exercise paths through the code and
determine the appropriate outputs. This is analogous to testing nodes in a circuit, e.g.in
circuit testing (ICT).
While white-box testing can be applied at the unit, integration and system levels of the
software testing process, it is usually done at the unit level. It can test paths within a unit,
paths between units during integration, and between subsystems during a systemlevel test.
Though this method of test design can uncover many errors or problems, it might not notice
unimplemented parts of the specification or missing requirements.
Branch testing
Path testing
Statement coverage
Decision coverage
7.4. Levels
7.4.1. Unit Testing
White-box testing is done during unit testing to guarantee that the code is working as
intended, before any integration take place with previously tested code. White-box testing
during unit testing catches any faults early on and aids in any defects that happen later on
after the code is integrated with the rest of the application and therefore prevents any type
of errors later on.
21
22
23
8. IMPLEMENTATION
8.1 Implementation of the project
We implemented our system using WordPress, Google analytics API and good ad- sense.
WordPress made it easy to handle the back end of the system, however our backend also
constitutes of google analytic API which is integrated in PHP and then added to the
WordPress backend.
Implementing Front End
The Front end of our website includes, the posts, discussions, menus, etc. All this is
implemented by creating a custom theme in WordPress. The custom theme was used to
change the way our website look, and behave. WordPress also enable us to add some
widgets to make it look even better, however we didnt use much of widgets and only
focused on our custom theme more. The custom theme consist of many .php files and
.css stylesheets. Also WordPress functions are being used along with php in custom
theme.
In case of Android application the front end was implemented using eclipse, to add and
manage different layouts, providing better user Interface.
Implementing Back End
WordPress provides its own back end, which is quite easy to use and offers quick
solutions to the back end problems. However, in our case we not only needed WordPress
backend or dashboard for admin , but needed google analytics API to be integrated in
PHP so that it can be used to see the earnings to each and every author , this was done by
connecting google analytics to google ad sense. So we got the amount of page views
from, google analytics and earnings from Ad Sense, and finally we created a payroll
system on the back end , joining both the concepts.
24
25
9. PROJECT LEGACY
9.1. Current Status of the project
After performing testing phase, we found lots of bugs in application. We fixed all
the bugs after the testing phase. Application performs well, the errors in posting the
stories and commenting have been corrected.
We are currently focusing on making the website more user friendly, and on
improving the android application interface, since we dont have many users who
need android application, this is somewhere our second priority also we are working
on search engine optimisation.
All we have done, we come to know many points. These points really help in
Last but not last point is maintenance of Product. How can we make it durable for
future?
We learned how to work in a team. How to make different modules and then integrate
26
Featured Articles
Recent articles
View Module
After clicking on a post the post will open in the window. As we can see , on the left hand
side of the page is the information about the author , who has written the post and in the
centre we have the post name , the no. of views it has , date on which it was published,
the category it belongs to and the no. of thumbs up it has.
28
Registration Page
Whenever the user wants to register as an author, he clicks on the register button and the
window shown below appears, the needed details are:
Username
Email
First name
Last name
Website
After completing these and clicking on submit, an email will be send on the given email
address of the person, which has the password to login.
29
Login Page
Login Page GUI consists of two Columns which helps in attaining the information of all
the users.
Password
30
31
Add Description
Adding pictures is not mandatory. After adding pictures , we can even add
captions and discriptions separately to the pictures .
Video can aslo be added by using the url of the video along with story.
Add story and save draft story buttons are also there.
32
Ask Module
Ask Module is similar to the add story module , but it Has some less fields to be filled
33
My blog shows all the posts that are written by the author, there the author has an option
to either edit or delete the posts.
34
Draft Blog shows the posts that you have kept in the draft.
35
About Author
It gives the stats related to other, the post he made , the questions , he asked , and the
answers he gave.
36
Reputation system
In reputation system , authors are given points on the basis of their activities , the more
active they are on the website , the more amount of points they are rewarded with, these
points help increasing the reputation of the author.
37
My Earnings
38
41
42
Header.php
<?php
/**
* The Header for our theme
*
* Displays all of the <head> section and everything up till <div id="main">
*
* @package WordPress
* @subpackage Twenty_Fourteen
* @since Twenty Fourteen 1.0
*/
?><!DOCTYPE html>
<!--[if IE 7]>
<html class="ie ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html class="ie ie8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if !(IE 7) & !(IE 8)]><!-->
<html <?php language_attributes(); ?>>
<!--<![endif]-->
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
43
-->
<!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js"></script>
<![endif]-->
44
<?php
if(is_user_logged_in()){
?>
<?php
wp_nav_menu( array(
'menu'
=> 'topmenu',
=> 2,
=> 'false',
'menu_class'
'fallback_cb'
=> 'wp_bootstrap_navwalker::fallback',
'walker'
);
?>
<?php
}else{
?>
<ul>
<li><a class="btn btn-default sign-in-btn add-btn" href="<?php echo site_url() .
'/login/'; ?>">Login</a></li>
46
</div>
</div>
</div>
<header id="header">
<!-- Static navbar -->
<nav class="navbar navbar-default navbar-static-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div id="navbar" class="navbar-collapse collapse">
<?php
47
wp_nav_menu( array(
'menu'
=> 'primary',
=> 2,
=> 'false',
'menu_class'
'fallback_cb'
=> 'wp_bootstrap_navwalker::fallback',
'walker'
);
?>
<?php /*?><ul class="nav navbar-nav custom_nav">
<li class="active"><a href="index.html">Home</a></li>
<li><a href="#">Technology</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
aria-expanded="false">Mobile</a>
<ul class="dropdown-menu" role="menu">
<li><a href="#">Android</a></li>
<li><a href="#">Samsung</a></li>
<li><a href="#">Nokia</a></li>
<li><a href="#">Walton Mobile</a></li>
<li><a href="#">Sympony</a></li>
</ul>
</li>
<li><a href="#">Laptops</a></li>
<li><a href="#">Tablets</a></li>
<li><a href="contact.html">Contact Us</a></li>
<li><a href="404.html">404 Page</a></li>
48
</ul><?php */?>
</div><!--/.nav-collapse -->
<div class="search">
<a class="search_icon" href="#"><i class="fa fa-search"></i></a>
<form action="<?php echo site_url();?>" method="get">
<input class="search_bar" type="text" name="s" placeholder="Search here">
</form>
</div>
</div>
</nav>
</header>
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
49
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_home);
w1 =(WebView)findViewById(R.id.webview1);
WebSettings ws = w1.getSettings();
ws.setJavaScriptCanOpenWindowsAutomatically(true);
ws.setLoadsImagesAutomatically(true);
String url ="www.viralvalues.com/story";
w1.loadUrl(url);
w1.setWebViewClient(new WebViewClient());
}
}
50
12. BIBLIOGRAPHY
Text Book
1.
2.
3.
4.
Website:
1. http://www.w3schools.com/php/
2. http://www.w3schools.com/css/default.asp
3. http://www.wpbeginner.com/wp-tutorials/how-to-create-custom-post-types-inwordpress/
4. https://wordpress.org/support/topic/featured-image-size-pages-in-header
5. http://www.wpbeginner.com/wp-tutorials/how-to-restrict-content-to-registeredusers-in-wordpress/
51
52