Download Assignment 1 web project and more Summaries Web Application Development in PDF only on Docsity!
Higher Nationals in Computing
WEBG301: WEB Project
ASSIGNMENT
Learner’s name: NGUYỄN XUÂN NAM
ID: GCS
Class: GCS0905A
Subject code: WEBG
Assessor name: PHAN MINH TAM
Assignment due: 2 1 A u g u s t 2 0 2 2
Assignment submitted: 2 1 A u g u s t 2 0 2 2
ASSIGNMENT FRONT SHEET
Qualification BTEC Level 5 HND Diploma in Computing Unit number and title WEBG301: WEB Project Submission date 21 August 2022 Date Received 1st submission Re-submission Date Date Received 2nd submission Student Name
- Nguyễn Xuân Nam
- Dương Chí Lộc
- Sú Say Phát
- Phạm Hoàng Quang Duy Student ID
1. GCS
2. GCS
3. GCS
4. GCS
Class Assessor name Phan Minh Tam 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 Grading grid P M D
Table of Contents
Chapter 1: Introduction
- Background information The Pass Store is a beginner form. We farm a store that sells PCs. Today technology is constantly evolving and everyone has a need for technology. They need things that can help them work, play games or something fast, easy and convenient, and computers can help them do that. I was like them, I found and bought a computer for myself but now there are too many discredited computer shops and I have fallen victim to scam and fake companies. So, so that everyone doesn't fall into the same situation as me, I decided to open this shop. In this store we will supply almost all PCs. Our store will sell a full range of PCs from famous manufacturers and always update the latest items regularly as well as sell old PCs if users have a need. But if you don't want to waste time or don't know which PC to choose, we also have a PC sales system for you with options to suit your needs or your price. And for the convenience of our customers, in addition to branches across the country, we have created a separate website for the store and door-to-door delivery. Our website will be fully functional for users to use in an easy, understandable and convenient way. The website will include full catalog for all products, product information page, login, registration, search, contact admin, cart, view and purchase by any means of payment.
- Project aim and objectives The main goal of the project is to create a web software program for selling PC products. This has been broken down into six main goals, which are: Allow customers to see all the products of the shop. Allow customers to view details of each product. System implementation. Admin can manage all PC, Producer and category. Admin is required to login. Customers can login or create their own account and can edit information.
Chapter 2: Literature Review
- Introduction To develop a project, we have many models to approach and develop that project. But now it is generally accepted that there are three basic lifecycle approaches to software development, the waterfall approach, iterative development and component-based software engineering. This literature review places Rapid Application Waterfall Approach in context as well as looking at some of reasons for the evolution of methodologies.
- SDLC model 2.1. Introduction to SDLC. Software Development Life Cycle (SDLC) is a process used by the software industry to design, develop and test high quality software. The SDLC aims to produce a high-quality software that meets or exceeds customer expectations, reaches completion within times and cost estimates. - SDLC is the acronym of Software Development Life Cycle. - It is also called as Software Development Process. - SDLC is a framework defining tasks performed at each step in the software development process. - ISO/IEC 12207 is an international standard for software life-cycle processes. It aims to be the standard that defines all the tasks required for developing and maintaining software. SDLC is a process followed for a software project, within a software organization. It consists of a detailed plan describing how to develop, maintain, replace and alter or enhance specific software. The life cycle defines a methodology for improving the quality of software and the overall development process. The following figure is a graphical representation of the various stages of a typical SDLC.
- Analysis: The system specifications are analyzed to generate product models and business logic that will guide production. This is also when financial and technical resources are audited for feasibility.
- Design: A design specification document is created to outline technical design requirements such as programming language, hardware, data sources, architecture and services.
- Coding/Implementation: The source code is developed using the models, logic and requirements designated in the prior stages. Typically, the system is designed in smaller components, or units, before being implemented together.
- Testing: This is when quality assurance, unit, system and beta tests take place to report issues that may need to be resolved. This may cause a forced repeat of the coding stage for debugging. If the system passes the tests, the waterfall continues forward.
- Operation/Deployment: The product or application is deemed fully functional and is deployed to a live environment.
- Maintenance: Corrective, adaptive and perfective maintenance is carried out indefinitely to improve, update and enhance the final product. This could include releasing patch updates or releasing new versions.
Figure 1: Waterfall model The waterfall approach is ideal for projects that have specific documentation, fixed requirements, ample resources, an established timeline and well-understood technology. Alternatives to the waterfall model include joint application development (JAD), rapid application development (RAD), sync-and-stabilize, Agile project management (APM) and the spiral model. Advantages of the waterfall model While agile or dynamic methods often replace the waterfall model, there are some advantages: Upfront documentation and planning stages allow for large or shifting teams to remain informed and move towards a common goal. Forces structured , disciplined organization. Is simple to understand, follow and arrange tasks.
MVC is an architectural pattern which means it rules the whole architecture of the applications. Even though often it is known as design pattern but we may be wrong if we refer it only as a design pattern because design patterns are used to solve a specific technical problem, whereas architecture pattern is used for solving architectural problems, so it affects the entire architecture of our application. It has three main components:
- Model: The Model component corresponds to all the data-related logic that the user works with. This can represent either the data that is being transferred between the View and Controller components or any other business logic-related data. For example, a Customer object will retrieve the customer information from the database, manipulate it and update it data back to the database or use it to render data.
- View: The View component is used for all the UI logic of the application. For example, the Customer view will include all the UI components such as text boxes, dropdowns, etc. that the final user interacts with.
- Controller: Controllers act as an interface between Model and View components to process all the business logic and incoming requests, manipulate data using the Model component and interact with the Views to render the final output. For example, the Customer controller will handle all the interactions and inputs from the Customer View and update the database using the Customer Model. The same controller will be used to view the Customer data. and each of them has specific responsibilities
Figure 2 : MVC model The main reasons why MVC is used are: First, it doesn't allow us to repeat ourselves and second, it helps to create a solid structure of our web applications.
- PHP Frameworks a. What is PHP Framework? PHP is one of the most popular programming languages around the world, and the recent PHP 7 release made this server-side programming language better and more stable than ever. PHP is widely used in major projects. Facebook, for example, utilizes PHP for maintaining and creating their internal systems. WordPress uses PHP to power its internals, which in return is powering more than 26% of the web. Currently, PHP powers more than 82% of websites (whose server-side programming languages the Web Technology Surveys site is able to track). In this article, we'll look at three of the most popular PHP frameworks: Symfony, Laravel, and Yii. We'll examine how they compare to help you decide which one might be the best fit for your needs. b. Why use a PHP Framework?
- Yii (Framework)
- CakePHP
- Slim
- Phalcon
- FuelPHP
- Fat-Free Framework
- Laravel d. PHP Framework is used in project. We are currently using laravel. Because Laravel helps website developers simplify their development process with clean and reusable code. Laravel is an open-source PHP framework, which is robust and easy to understand. It follows a model-view-controller design pattern. Laravel reuses the existing components of different frameworks which helps in creating a web application. The web application thus designed is more structured and pragmatic. It's one of the few frameworks that has the flexibility and rich features to make it a perfect platform for creating websites and online applications. And Laravel has 5 advantages are:
- MVC Architecture For Exceptional Support & Performance
- Template Engine For Outstanding Layouts
- Artisan CLI For Utterly Simple & Fast Commands
- Eloquent ORM For Easy Interaction With App Database
- Adequate App Testing Features
- Database (advantage, disadvantage) MySQL is an Oracle-backed open source relational database management system (RDBMS) based on Structured Query Language (SQL). MySQL runs on virtually all platforms, including Linux, UNIX and Windows. Although it can be used in a wide range of applications, MySQL is most often associated with web applications and online publishing.
MySQL is an important component of an open source enterprise stack called LAMP. LAMP is a web development platform that uses Linux as the operating system, Apache as the web server, MySQL as the relational database management system and PHP as the object-oriented scripting language. (Sometimes Perl or Python is used instead of PHP.) Advantages:
- Improves data sharing and employees’ productivity
- No redundant data
- Provides greater security and privacy of data
- Shows you the big picture
- Raises your ability to increase profits
- Ensures consistency of data
- Robust backup and recovery
- Improves your overall marketing and ensures a better customer experience Disadvantages:
- Increased costs
- Complexity
- Higher impact of a failure
- Techniques and Tools Techniques
- HTML
- PHP
- CSS
- Boostrap
- Javascript
- Jquery
UI/UX well-design: this website show almost features example: show list products, login, register, category. Accessibility : Website must designed for over 2.000 users. Performance : Website must be access under 10 seconds.
- Use case diagram 2.1. Use case computer store system.
Figure 3: Use case computer store system. 2.2. Use Case specification