Download Waterfall Model in Software Development: Understanding the Process and Advantages 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
❒ Summative Feedback: ❒ Resubmission Feedback:
Grade: Assessor Signature: Date: Signature & Date:
Table of Contents
- Chapter 1.................................................................................................................................................
- Background information...............................................................................................................
- Project aim and objectives.............................................................................................................
- Chapter 2.................................................................................................................................................
- Introduction....................................................................................................................................
- SDLC model....................................................................................................................................
- 2.1. Introduction to SDLC.....................................................................................................
- 2.2. Type of SDLC..................................................................................................................
- 2.3. SDCL model applied in project......................................................................................
- 2.4. SDCL model applied in project......................................................................................
- MVC architecture...........................................................................................................................
- PHP Frameworks...........................................................................................................................
- Database........................................................................................................................................
- Techniques and Tools...................................................................................................................
- Chapter 3................................................................................................................................................. - 1. User’s requirements..................................................................................................................... - 1.1. Functional requirements..................................................................................................... - 1.1.1. Customer roles............................................................................................................ - 1.1.2. Admin roles................................................................................................................. - 1.2. Non-Functional requirements............................................................................................ - 2. Use case diagram.......................................................................................................................... - 2.1. Use case computer store system......................................................................................... - 2.2. Use Case specification......................................................................................................... - 2.2.1. UC-1............................................................................................................................. - 2.2.2. UC-2............................................................................................................................. - 2.2.3. UC-3............................................................................................................................. - 2.2.4. UC-4............................................................................................................................. - 2.2.5. UC-5............................................................................................................................. - 2.2.6. UC-6............................................................................................................................. - 3. Gantt chart....................................................................................................................................
- Chapter - 1. Site map......................................................................................................................................... - 2. Database design............................................................................................................................ - 2.1. Database diagram................................................................................................................ - 2.2. Data dictionary.................................................................................................................... - 3. WireFrame design........................................................................................................................
- Chapter - 1. Appication screenshots................................................................................................................. - 1.1. Customer side...................................................................................................................... - 1.2. Admin side............................................................................................................................ - 2. Sample source code...................................................................................................................... - 3. GitHub Repository.......................................................................................................................
- Chapter - 1. What went well............................................................................................................................. - 2. What did no go well...................................................................................................................... - 3. Lessons learned and further improvements..............................................................................
- Figure 1.................................................................................................................................................... Table of Figure
- Figure 2....................................................................................................................................................
- Figure 3..................................................................................................................................................
- Figure 4..................................................................................................................................................
- Figure 5..................................................................................................................................................
- Figure 6..................................................................................................................................................
- Figure 7..................................................................................................................................................
- Figure 8..................................................................................................................................................
- Figure 9..................................................................................................................................................
- Figure 10................................................................................................................................................
- Figure 11................................................................................................................................................
- Figure 12................................................................................................................................................
- Figure 13................................................................................................................................................
- Figure 14................................................................................................................................................
- Figure 15................................................................................................................................................
- Figure 16................................................................................................................................................
- Figure 17................................................................................................................................................
- Figure 18................................................................................................................................................
- Figure 19................................................................................................................................................
- Figure 20................................................................................................................................................
- Figure 21................................................................................................................................................
- Figure 22................................................................................................................................................
- Figure 23................................................................................................................................................
- Figure 24................................................................................................................................................
- Figure 25................................................................................................................................................
- Figure 26................................................................................................................................................
- Figure 27................................................................................................................................................
- Figure 28................................................................................................................................................
- Figure 29................................................................................................................................................
Chapter 1: Introduction
1. 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. 2. 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. P a g e | 1
2.2. Type of SDLC There are various software development life cycle models defined and designed which are followed during the software development process. These models are also referred as Software Development Process Models". Each process model follows a Series of steps unique to its type to ensure success in the process of software development. Following are the most important and popular SDLC models followed in the industry − Waterfall Model Iterative Model Spiral Model V-Model Big Bang Model Other related methodologies are Agile Model, RAD Model, Rapid Application Development and Prototyping Models. 2.3 Waterfall model details. The waterfall model is a linear, sequential approach to the software development life cycle (SDLC) that is popular in software engineering and product development. The waterfall model emphasizes a logical progression of steps. Similar to the direction water flows over the edge of a cliff, distinct endpoints or goals are set for each phase of development and cannot be revisited after completion. The term was first introduced in a paper published in 1970 by Dr. Winston W. Royce and continues to be used in applications of industrial design. The waterfall methodology is composed of seven non-overlapping stages:
- Requirements: Potential requirements, deadlines and guidelines for the project are analyzed and placed into a functional specification. This stage handles the defining and planning of the project without mentioning specific processes. P a g e | 3
- 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. P a g e | 4
Facilitates departmentalization and managerial control based on schedule or deadlines. Reinforces good coding habits to define before design and then code. Allows for early design or specification changes to be made easily. Clearly defines milestones and deadlines. Disadvantages of the waterfall model The disadvantages of the waterfall model typically surround risk associated with a lack of revision, including: Design is not adaptive; often when a flaw is found, the entire process needs to start over. Ignores the potential to receive mid-process user or client feedback and make changes based on results. Delays testing until the end of the development life cycle. Does not consider error correction. Does not handle requests for changes, scope adjustments or updates well. Reduces efficiency by not allowing processes to overlap. No working product is available until the later stages of the life cycle. Not ideal for complex, high risk, ongoing or object-oriented projects. 2.4 SDCL model applied in project Model of Tune Source should choose is Waterfall model .Because there are advantage model brings to Tune Source , such as :It is very easy, realistic approach that provides flexibility to developers. And promotes teamwork and cross training. The Waterfall SDLC model allows teams to be more flexible and to implement changes more quickly. Products get to market faster and users don't have to wait long for new features and updates. The Waterfall software development life cycle provides the necessary conditions for better communication with users and product owners.
3. MVC architecture 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 P a g e | 6
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 P a g e | 7
few benefits of using a framework include: A PHP framework makes development faster. For example, you don't have to write complex queries to retrieve the data from the database. PHP frameworks provide CRUD operations (Create, Read, Update, and Delete). Frameworks enable developers to scale systems easily. Code maintenance is easier than with a vanilla PHP application. The application code is concise and easy to work with. The MVC model ensures rapid development. Frameworks are better in securing the web application from common security threats. The don't repeat yourself (DRY) principle ensures that minimal code has maximum impact. The above benefits are too significant to be ignored. Even though raw PHP can be used to create any application, the current development standards require tools and time- management skills to meet the market demand. c. Common PHP Frameworks It’s difficult to get a definitive list of PHP frameworks. Wikipedia lists 40 PHP frameworks, but some of those are better described as content management systems, and undoubtedly there are many more. Early PHP frameworks include PHPlib, Horde, and Pear. Most of the big names now launched in 2005 or later. Here are some of the best PHP frameworks in use today.
- Laravel
- Symfony
- CodeIgniter
- Zend Framework / Laminas Project
- Yii (Framework) P a g e | 9
- 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 5. 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. P a g e | 10
-Html Tools -Visual studio code -Xampp -Mysql workbench Chapter 3: Requirements Analysis
1. User’s requirements 1.1. Functional requirements 1.1.1. Customer roles: View products. Search product. View product details. Login user. Register user account. 1.1.2. Admin roles: Select: PC,category,producer,user. Create: PC,category,producer. Update: PC,category,producer. Delete: PC,category,producer,user. Edit: PC,category,producer. Login admin. 1.2. Non-Functional requirements P a g e | 12
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.
2. Use case diagram 2.1. Use case computer store system. P a g e | 13