CAN402 – Social Web Programming Coursework 2
Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit
CAN402 – Social Web Programming
Coursework 2
The assignment is worth 15% of the total mark for CAN402.
PHP Web Application – Photo Sharing
One popular form of social media is photo sharing, as seen in sites like Instagram (www.instagram.com), and Xiaohongshu (www.xiaohongshu.com). Users of this site can share photos, add comments, like and dislike photos . They can also tag their photos, and people can search for specific tags. For your assignment, you are going to build a version of one of these sites, using PHP.
In this assignment, you will develop a server-side social media application that will allow users to register and login to a photo sharing site, maintain a profile, add and remove photos, with a description and hashtag. You should be able to view a clickable grid of photos, and add likes, comments, and search for images. You should also be able to see the total number of likes and photos that a user has. To get the highest marks, you should carry out independent research to develop the advanced features.
For an excellent assignment, the user should be able to register a profile, change their profile photo and description, upload their own photos, search for and view other photos, searching by tags and by user. The user profile pages should contain useful information, and users should also be able to comment and like on other photos. The photo should also be displayed differently depending if it is landscape, portrait, or square. There should be some site design with a navigation menu, header, and some CSS, and, SQL tables for storing data.
This is a PHP assignment, and so the full task should be run using SQL.
Tasks and Marking Scheme
Database – 5% in total
1) Use of SQL tables, good database design, use of advanced data types. (5%)
PHP Code Quality and Design – 15% in total
1) Good use of PHP code and functionality (5%)
2) Good site design, menus, headers, colour scheme (10%)
Login and Registration Pages – 10% in total
1) Log in page created
2) Registration page created
Profile Page – 15% in total
1) Can view profile information. Profile information should include a minimum of name, username, and some profile text.
2) Can view and modify a profile photo
3) Can modify profile text
Upload a photo – 15% in total
1) Can upload a photo and store it in database and on server
2) Description and hashtags present
3) Choice of landscape/portrait
Display Photos – 15% in total
1) View own photos
2) Search for and view all photos by a user
3) Search for and view all photos that match a hashtag
4) Clickable images
View Individual Photo – 15% in total
1) Can view photo and relevant information
2) Can add a like/dislike
3) Can view and add comments
4) Can view likes and dislikes
5) Can view hashtags
Advanced Functionality – 10% in total.
1) Make sure it is only possible for a user to like OR dislike (not both), and that they can only like a photo one time (5%)
2) Implement clickable hashtags (5%)
Submission
You are to submit 2 items:
1) A zip file containing:
a. All your PHP, source code files (e.g., HTML, CSS, JS) and other resource files (e.g., images)
b. Your exported SQL tables (named as database.sql)
c. A readme.txt file giving your folder location on the webserver e.g., http:// 10.7.126.15/wanxin/cw2/index.php
2) A written report in PDF:
a. 6 pages in font size 11 and 1.0 line spacing
b. Explain your website features and functionalities
c. Provide descriptions for your website with screenshots
d. Describe the steps involved in photo sharing on your website
The deadline for submission of all 2 items of Coursework 2 is: Sunday, May 14th, 23:59.
Remember that your website should also be running on the department server, and you should submit a readme.txt file with your url. To prevent errors, please ensure there are no Chinese characters in any of the submitted files.
Late submission will be accepted with accumulative 5% total marks penalty per day, up to 5 days. After that, any submission of any item will be rejected, and the marks for this coursework will be zero.
Coursework Advice
This assignment is individual work . Plagiarism (e.g. copying materials from other sources without proper acknowledgement) is a serious academic offence. Plagiarism will not be tolerated and will be dealt with in accordance with the University Code of Practice on Assessment.
Some example screenshots of a demo are shown below. Note, you should not be copying these,
they are to give you an idea of the functionality:
2023-04-20