Docsity

Cloud Cloud Computing, Lecture notes of Introduction to Computing

Toggle sidebar
bg1
1
GROUP PROJECT FRONT SHEET
Qualification
BTEC Level 5 HND Diploma in Computing
Unit number and title
Semi Project
Submission date
Date Received 1st submission
Re-submission Date
Date Received 2nd submission
Student Name
Bui Nguyen Ngoc Han
Ngo Thi Khanh Chi
Phan Van Hao
Nguyen Lam Tung
Student ID
BH00150
BH00182
BH00206
BH00186
Class
Assessor name
Ngo Thi Mai Loan
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.
Student’s signature
Grade
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14

Partial preview of the text

Download Cloud Cloud Computing and more Lecture notes Introduction to Computing in PDF only on Docsity!

GROUP PROJECT FRONT SHEET

Qualification BTEC Level 5 HND Diploma in Computing Unit number and title Semi Project Submission date Date Received 1st submission Re-submission Date Date Received 2nd submission Student Name Bui Nguyen Ngoc Han Ngo Thi Khanh Chi Phan Van Hao Nguyen Lam Tung Student ID

BH

BH

BH

BH

Class Assessor name Ngo Thi Mai Loan 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. Student’s signature Grade

❒ Summative Feedback: ❒ Resubmission Feedback:

Grade: Assessor Signature: Date: Signature & Date:

  • The system is built on PHP platform and MySQL database c. Seccurity
  • The system is protected by a firewall
  • All user information will be completely encrypted to ensure security d. Performance and durability
  • The system must be reliable and meet the requirements of the users
  • The system must be able to handle it quickly even when there is a large number of users accessing it
  • Always ensure optimal performance to ensure user experience
    1. Use-case desciption a. Login Name Login Description Allow the actor to log in to the account from the system Actor Admin/ Customer Activities Actor System Main flow: Log in successfully Main flow: Log in successfully Actor clicks on the Login button Actor enters valid login information The login form will open. Confirm login then go to the Homepage

Table 1 : Log in

b. Log out Name Logout Description Allow the actor to logout the account from the system Actor Admin/ Customer Activities Actor System Main flow: Log out successfully Main flow: Log out successfully Actor clicks on the Logout button on the profile management page Confirm logout then go to the Login page

Table 2 : Log out

c. Add User Name Add User Description Allow the actor to add User Actor Admin Activities Actor System Main flow: Add user Main flow: Add user Actor clicks on Add new User on the User Management page Actor fills in all information and clicks on Add button Load Add new user page Save the new user to the database and return to the User Management page

Table 3 : Add User

d. Update User Name Update User Description Allow the actor to edit User Actor Admin Activities Actor System Main flow: Edit user Main flow: Edit user Actor clicks on the Edit button on the role in User management page Actor updates a user and clicks on the Save button Switch to the Edit User page Confirm the update and return to the User Management Page

Table 4 : Update User

g. Add Product Name Add Product Description Allow the actor to add Product Actor Admin Activities Actor System Main flow: Add Product Main flow: Add Product Actor clicks on Add new Product on the Product Management page Actor fills in all information and clicks on Add button Load Add new Product page Save the new Product to the database and return to the Product Management page

Table 7 : Add Product

h. Update product Name Update Product Description Allow the actor to edit Product Actor Admin Activities Actor System Main flow: Edit Product Main flow: Edit Product Actor clicks on the Edit button on the role in Product management page Actor updates a product and clicks on the Save button Switch to the Edit Product page Confirm the update and return to the Product Management Page

Table 8 : Update product

i. Delete Product Name Update Product Description Allow the actor to delete Product Actor Admin Activities Actor System Main flow: Delete Product Main flow: Delete Product Actor clicks on the Delete button on the Product in the Product management page Actor clicks on Confirm button Ask the actor to confirm the delete action. Successfully delete the Product and return to the Product Management page.

Table 9 : Delete Product

j. View Product Name View Product Description Allow the actor to view Product on the system Actor Admin Activities Actor System Main Flow: View Product Main Flow: View Product Actor clicks on Product Management from the navigation bar Load Product Information on the Product management detail page

Table 10 : View Product

m. Delete Type (Category) Name Update Type Description Allow the actor to delete Type (Category) Actor Admin Activities Actor System Main flow: Delete Type (Category) Main flow: Delete Type (Category) Actor clicks on the Delete button on the Category in the Category management page Actor clicks on Confirm button Ask the actor to confirm the delete action. Successfully delete the Category and return to the Category Management page

Table 13 : Delete Type (Category)

n. View Type (Category) Name View Type Description Allow the actor to view Type (Category) on the system Actor Admin Activities Actor System Main Flow: View Type (Category) Main Flow: View Type (Category) Actor clicks on Category Management from the navigation bar Load Category Information on the Category management detail page

Table 14 : View Type (Category)

o. Search Name Search Description Users, Guests and Admins can search for products on the site Actor Admin/User/Guest Activities Actor System Main Flow: Search product Main Flow: Search product Actor enter the name of the product you want to find and press Search Search and display products that match the product name the user searches for

Table 15 : Search

II. System Designs

  1. Sitemap

Figure 1 : Sitemap

Figure 3 : ERD

2.2. ERD Documentation a. Product Column Data Type Constraint productid Int(10) Primary key productname varchar(255) productdescription varchar(255) productimage varchar(255) price varchar(255) quantity varchar(255) status varchar(255) detail varchar(255) typeid int(10) Forgein key brandid int(10) Forgein key created_at timestamp updated_at timestamp

Table 16 : ERD documentation - Product

b. User Column Data Type Constraint userid int(10) Primary key username varchar(255) fullname varchar(255) email varchar(255) password varchar(255) phone varchar(255) role varchar(255) update_by varchar(255) created_at timestamp updated_at timestamp

Table 17 : ERD documentation - User

e. Order Column Data Type Constraint orderid int(10) Primary key orderdate varchar(255) status varchar(255) delivered varchar(255) delivereddate varchar(255) address varchar(255) discount varchar(255) phone varchar(255) message varchar(255) userid int(10) Forgein key created_at timestamp updated_at timestamp

Table 20 : ERD documentation - Orrder

III. Wireframes Figure 4 : Home page

Figure 6 : Wireframes login

IV. Implementation

  1. MVC in Laravel MVC, which stands for Model-View-Controller, is a software architectural pattern commonly used in web development to separate the concerns of an application's components. Laravel, a popular PHP web application framework, follows the MVC pattern to help developers build structured, maintainable, and scalable applications.
    • Model: The Model represents the application's data and business logic. In Laravel, models are typically placed in the app/Models directory. Each model class corresponds to a database table, and through Eloquent, Laravel's ORM (Object-Relational Mapping) system, you can interact with the database using these models.
    • View: The View is responsible for rendering the user interface. In Laravel, views are stored in the resources/views directory. These files contain HTML, along with embedded PHP code that can output dynamic data. Laravel uses the Blade templating engine to make it easier to work with views.
    • Controller: The Controller acts as an intermediary between the Model and the View. It handles incoming requests, processes data from the model, and passes relevant data to the view for rendering. Controllers in Laravel are stored in the app/Http/Controllers directory. In this setup, the MVC pattern helps maintain a clear separation of concerns, making codebase more organized and easier to maintain. Laravel's routing system helps direct incoming requests to the appropriate controller methods, where can interact with models and prepare data for views. To summarize, MVC in Laravel follows these principles:
    • Model: Represents data and business logic.
    • View: Handles user interface rendering.
    • Controller: Manages interactions between the Model and the View.