Sequence create exercise category .... Sequence update exercise category .... Sequence view exercise category .... Sequence "Create exercise category" .... Sequence "Update exercise cate
INTRODUCTION
RESEARCH APPROACH AND METHODOLOGY
1.5 SCIENTIFIC AND PRACTICAL MEANING 1.6 ASSIGNMENT
CHAPTER 4 SYSTEM ANALYSIS AND DESIGN
SCIENTIFIC AND PRACTICAL MEANING
CHAPTER 4 SYSTEM ANALYSIS AND DESIGN
THEORETICAL BACKGROUND
SYSTEM REQUIREMENTS
SYSTEM ANALYSIS AND DESIGN
IMPLEMENTATION AND TESTING
CONCLUSION
FUTURE WORK
1 04/03/2024 – 17/03/2024 - Research about the current status of fitness in Viet Nam
- Design use case and requirement modelling
2 18/03/2023 – 31/03/2024 - Install tools and environment for coding and testing
- Organize meeting for the whole members to clarify the business requirements of the project
- Write the tasks that need to be done for the project
3 01/04/2024 – 27/04/2024 - Conduct API development based on ideas learned knowledge and documents
- Conduct user interface construction for the system
- Prepare for the midterm report (50% progress)
4 28/04/2023 – 31/05/2024 - Continue to complete the remaining parts
- Write test cases to test system features
- Conduct system testing and handle errors if they appear v
- Preparing data for the application
- Meeting for preparing the presentation of project
Hồ Chí Minh city, June 14, 2024
(Name and signature) Nguyen Minh Tri
Phan Thanh Luan | Vo Minh Hung vi
CHAPTER 4 SYSTEM ANALYSIS AND DESIGN 79
4.4.14 View member physical body history page 118
Figure 1 Technologies using in project 8
Figure 4 Unit test for features 10
Figure 13 Home page Citi Gym 27
Figure 14 Service page Citi Gym 28
Figure 15 Home page of MS 29
Figure 16 Exercise Category page of MS 30
Figure 17 Exercise page of MS 30
Figure 18 Exercise details page of MS 31
Figure 19 Use case for guest 38
Figure 20 Use case for member 39
Figure 21 Use case for personal trainer 40
Figure 22 Use case for admin 40
Figure 26 Sequence "Change account information" 81
Figure 28 Sequence "Change new password" 82
Figure 30 Sequence "Update post" 84 xii
Figure 43 Sequence "Assign personal trainer" 94
Figure 44 Sequence "Track program progress" 95
Figure 45 Sequence "Update member history" 95
Figure 46 Sequence "View member history" 96
Figure 49 Sequence "Create exercise category" 97
Figure 50 Sequence "Update exercise category" 98
Figure 51 Sequence "View exercise category" 98
Figure 52 Sequence "View post detail” 99
Figure 54 View notification list sequence 100
Figure 55 View notification detail sequence 101
Figure 58 Users table (Database design) 103
Figure 59 Member table (Database design) 103
Figure 60 Personal_information_config table (Database design) 103
Figure 61 Personal trainer table (Database design) 104 xiii
Figure 62 Post table (Database design) 104
Figure 63 Tag table (Database design) 104
Figure 64 Post_tag (Database design) 104
Figure 65 Exercise table (Database design) 105
Figure 66 Exercise_category table (Database design) 105
Figure 67 Step table (Database design) 105
Figure 68 Video table (Database design) 105
Figure 69 Image table (Database design) 105
Figure 70 Program table (Database design) 106
Figure 71 Sub_task (Database design) 106
Figure 72 Workout_session (Database design) 106
Figure 74 Userhistory_notification (database design) 107
Figure 83 Category exercise page (cont.) 113
Figure 88 Program advertisement detail page 117
Figure 90 Member physical body page 118
Figure 92 Create exercise form 120 xiv
Figure 94 Assign personal trainer page 121
Figure 102 Back end & Databse deploy 133 xv
Table 1 Table of acronyms xviii
Table 3 Comparation between Spring boot & NodeJS 14
Table 5 Comparation between React & Angular 19
Table 13 Use case "Log in" 43
Table 14 User case "Reset Password" 44
Table 15 Use case “Update account information" 45
Table 16 Use case "Log out" 46
Table 17 Use case "View post" 47
Table 18 Use case “Create post” 48
Table 19 Use case "Update post" 49
Table 20 Use case "Delete post" 50
Table 21 Use case “Search post” 51
Table 22 Use case "View exercise" 52
Table 23 Use case "Search Exercise " 53
Table 24 Use case "Update Exercise" 54
Table 25 Use case "Delete Exercise" 55
Table 26 Use case “Create exercise” 56
Table 27 Use case "Create Program" 57
Table 28 Use case "Update Program" 58
Table 29 Use case "Delete program" 59
Table 30 Use case "View Program" 60 xvi
Table 31 Use case "Calculate BMI" 61
Table 32 Use case "Calculate calorie" 62
Table 33 Use case "Assign personal trainer" 63
Table 34 Use case "Track program progress" 64
Table 35 Use case "Update member history" 65
Table 36 Use case "View member history" 66
Table 37 Use case "Add task" 67
Table 38 Use case "Remove tasks" 68
Table 39 Use case "Create Exercise Category" 69
Table 40 Use case "View exercise category" 70
Table 41 Use case "Update Exercise Category" 71
Table 42 Use case "Delete exercise category" 72
Table 43 Use case send notification 74
Table 44 Use case view notification list 75
Table 45 Use case view notification detail 77
Table 46 Use case received notifcation 78
Table 50 Post detail UI description 111
Table 52 Category exercise UI description 113
Table 53 Category exercise UI description 113
Table 55 Calculate BMI UI description 115
Table 56 Calorie calculator UI description 116
Table 57 Service advertisement UI description 117
Table 58 Create post UI description 119
Table 59 Create exercise UI description 120
Table 60 Task detail UI description 121
Table 61 Assign personal trainer UI description 122 xvii
Table 62 Manage member UI description 122
Table 63 Manage blogs UI description 123
Table 65 Chat with AI UI description 124
Table 66 Notification management UI description 125
2 HTML Hyper Text Markup Language
4 HTTP Hyper Text Transfer Protocol
CHAPTER 1 INTRODUCTION 1.1 THE URGENCY OF THE TOPIC
In recent years, the situation of Vietnamese people leading sedentary and unhealthy lifestyles has become an alarming issue, deeply affecting public health and quality of life According to data from medical studies, the rate of overweight, obesity, and chronic diseases such as diabetes, cardiovascular diseases, and hypertension among Vietnamese people is rapidly increasing One of the main causes of this situation is the lack of physical activity, especially in large urban areas (World Health Organization [WHO], 2021)
In major cities like Hanoi, Ho Chi Minh City, and Da Nang, the fast pace of life and high work pressure cause many people to spend most of their day in the office, sitting in front of computers, with little opportunity for physical exercise (Nguyen & Tran, 2020) Furthermore, the habit of using personal means of transportation such as motorbikes and cars instead of walking or cycling significantly reduces the daily physical activity levels of the population (Nguyen & Tran, 2020) Modern life with the development of technology also contributes to the sedentary lifestyle of Vietnamese people, as many recreational activities such as watching movies, playing games, or browsing social media are performed in a sitting position (Le, 2019)
In addition, an unhealthy diet is also a significant factor contributing to an unhealthy lifestyle According to a report from the National Institute of Nutrition, the rate of overweight and obesity among Vietnamese adults increased from 8.5% in 2010 to 19% in 2023 (National Institute of Nutrition, 2023) Many people consume foods high in fat, sugar, salt, and processed products According to a study by the Ministry of Health, the average Vietnamese person consumes about 10.1 grams of salt per day, double the World Health Organization's (WHO) recommended limit of 5 grams
(Ministry of Health, 2018) Fast food meals, which are low in nutrition, have become a common choice due to their convenience and quick service, especially in busy modern life This habit not only increases the risk of nutritional diseases but also causes many long-term health problems According to a WHO report, the diabetes rate among Vietnamese adults increased from 2.7% in 2002 to 5.7% in 2017, and cardiovascular diseases are now the leading cause of death, accounting for about 33% of total deaths each year (WHO, 2017, WHO, 2023)
Furthermore, the lack of knowledge and awareness about the importance of maintaining a healthy lifestyle also exacerbates this situation Many people do not have the habit of regular health check-ups, do not understand the nutritional value of food, and lack the skills to manage their time to balance work and exercise (Pham, 2021) This requires a comprehensive change from personal awareness to supportive policies from the state (Government of Vietnam, 2020)
To improve the situation, strong and coordinated measures from both the state and the community are needed The state should enhance campaigns promoting the benefits of physical activity and a healthy diet, while also building playgrounds, parks, and sports facilities to encourage people to engage in physical activities Schools need to be more active in physical and nutritional education for students, helping to form healthy living habits from a young age Businesses can play a role by providing opportunities for employees to participate in sports activities and offering healthy meals at work
At the individual level, each person needs to be more aware of the importance of maintaining a healthy lifestyle Making small changes in daily habits, such as walking more, choosing fresh foods, cooking at home, and participating in sports activities, can have a significant positive impact on health
The situation of Vietnamese people leading sedentary and unhealthy lifestyles is a serious issue that requires timely attention and action from multiple sides Only with coordinated cooperation between the state, community, and individuals can we build a healthy and sustainable society This is also why our group chose the topic of “Building a website to share expertise and provide assistance to gymgoers” Through this platform, we aim to provide useful information and detailed guidance on exercises, proper nutrition, and healthy living, thereby encouraging and enabling Vietnamese people to improve their health and enhance their quality of life
The primary purpose of building a website that provides support services for gym-goers is to meet the increasing demand for a healthy lifestyle and effective training in the digital age Through this platform, clients have the ability to access comprehensive information about workout schedules, nutrition, and personal health enhancement strategies The goal is to create an online space where the gym community can share experiences (blogs and exercises) and collectively support each other
Additionally, the website aims to lower barriers for beginners by offering detailed guides, videos, and schedules tailored to individual needs Optimizing workout effectiveness through progress tracking and personal evaluation is also an integral part of this goal The platform will provide information and suggestions to help users maintain a healthy and balanced lifestyle
Ultimately, building the website is not only about creating a useful personal tool but also contributes to the global mission of community health, fostering a positive environment, and supporting the growth of the fitness and health industry The overarching goal is to provide a comprehensive, user-friendly solution and encourage everyone to maintain a healthy lifestyle
Clients: This group includes individuals who are gym-goers or people who want to get a healthier lifestyle and are utilizing the support services provided by the website The research will assess their experience using features such as workout schedules, exercise information, blogs to share knowledge, and tools
Personal Trainers: This category encompasses fitness professionals who utilize the website's services to enhance their training programs and client interactions The research will focus on their experience with features like client management tools, customizable workout plans, nutrition guidance, and any collaborative elements that facilitate communication between trainers and their clients Additionally, the study will explore how the website supports trainers in staying updated on industry trends, accessing educational resources
Administrators: These are individuals responsible for managing and maintaining the entire website system The research will focus on how they manage user accounts, content administration, and data collection to enhance the user experience
The primary focus of this topic is on creating a platform that facilitates the sharing of knowledge and experiences related to healthy living, including exercise, nutrition, and recipes, through blogs The website aims to cater to different user groups by providing tailored workout programs, monitoring progress, and offering comprehensive resources for both novice and experienced users
The website is divided into three main sections: Customer, Personal Trainer, and Admin, each with its own set of core features a) Client Section:
• Knowledge Sharing: Access to blogs and articles about exercise, nutrition, and healthy recipes
• Personalized Training Programs: Users can have personalized workout programs created by personal trainers based on their goals
• Progress Monitoring: Users can track their progress closely with detailed monitoring and optimization
• Beginner Resources: Comprehensive workout routines and nutrition plans tailored for beginners b) Personal Trainer Section:
• Resource Management: Ability to manage blogs, workout routines, and other resources on the system
• Custom Workout Programs: Create individualized workout programs for each client
• Task Management: Create and manage tasks for clients
• Progress Tracking: Monitor clients' workout progress and status c) Admin Section:
• Resource and Data Management: Tools for managing and monitoring system resources and data
• Statistics and User Management: Manage user accounts and access statistics
• Blog Post Approval: Approve blog posts submitted by users or trainers
• System Notifications: Manage system notifications