Docsity

Group Assignment Web Project, Assignments of Web Application Development

Toggle sidebar
bg1
GROUP REPORT
Qualification BTEC Level 5 HND Diploma in Computing
Unit number and title Unit 10: Web Project
Submission date Date Received 1st submission
Re-submission Date Date Received 2nd submission
Group number: 03
Student names and codes Final scores Signatures
1. Phan Minh Tiến Tien
2. Trần Bảo Nguyên Nguyen
3. Huynh Ngọc Hoàng Lộc Loc
Class GCD1001 Assessor name Hoàng Như Vĩnh
Student declaration
I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that
making a false declaration is a form of malpractice.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24

Partial preview of the text

Download Group Assignment Web Project and more Assignments Web Application Development in PDF only on Docsity!

GROUP REPORT

Qualification BTEC Level 5 HND Diploma in Computing Unit number and title Unit 10: Web Project Submission date Date Received 1st submission Re-submission Date Date Received 2nd submission Group number: 03 Student names and codes Final scores Signatures

  1. Phan Minh Tiến Tien
  2. Trần Bảo Nguyên Nguyen
  3. Huynh Ngọc Hoàng Lộc Loc Class GCD1001 Assessor name Hoàng Như Vĩnh Student declaration I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that making a false declaration is a form of malpractice.

P M D

Table of Contents

Chapter 1 – Users’ requirements

1. OVERVIEW ABOUT THE PROJECT

This project was born to create a website that is as simple as possible and meets the requirements of users. This is a news website and is often used to create posts documenting the ups and downs that users perceive in their lives.

2. REQUIREMENTS OF THE APPLICATION

As a User:

  • I want the website to have a create post function to keep my wonderful moments on the post page.
  • I want to see all the posts of other users.
  • I want to be able to comment on my posts as well as other people's posts.
  • I want to edit my post when I don't like it.
  • I want to update my profile picture
  • I want my account to be as secure as possible.
  • I would like to see a more detailed description of the posts when clicking the read more button.
  • I want to add comments or delete comments when I want.

Chapter 2 – System Design Based on the requirements of that customer. Our team has designed diagrams and coding as follows.

2.1 SITE MAP

Figure 1 : Site Map

A. PostController The Postcontroller is the controller handle for actions at the postpage including the index action is the action handle for displaying posts and users. Also, limit the number of posts per page to be displayed. Figure 3 : PostController(Page Number and Index) The second action is to show the post when the user clicks it after the user has created it, it will give correct post id and the function will accept that id to get data from that Id. Arrive shows the detailed post that the use created. In particular, you can view comments on posts. Figure 4 : PostController(Show post)

This is the creative action of this method that will handle the create a new post and after done creating and new post it will redirect to the home page. Figure 5 : PostController(Create post)

Finally action is Add comment action. It will handle the create a comment according to commentForm and after done creating comment, it will redirect to post_show. Figure 8 : PostController(AddComment) B. RegisterController When a user doesn't already have an account, the registration controller is responsible for processing all requests for registration or account creation. When a user registers, the register action will handle the login procedure. A successful registration will bring you to the log-in page. Figure 9 : RegisterController(register)

C. SecurityController When a user doesn't already have an account, the registration controller is responsible for processing all requests for registration or account creation. When a user logs in, the login action will manage the login procedure. The home page will be redirected after successful login. Figure 10 : SecurityController(login) This Log out function helps users log out of their accounts. When the user logs out, the website will navigate to the default home, requiring the user to log in before using other functions. Figure 11 : SecurityController(logout)

B. CommentForm Comment Form Type is used to add comments. Figure 14 : CommentForm C. RegisterForm When creating a new user or changing an existing user's profile, the Register form type is the form that displays the input fields for inputting the information. Figure 15 : RegisterForm

3.1.3 Entity

A. Post.php Figure 16 : Post.php

D. User.php Figure 19 : User.php

3.1.4 Reponsitory

A. PostReponsitory Figure 20 : PostRepository B. CommentReponsitory Figure 21 : CommentReponsitory