VIETNAM GENERAL CONFEDERATION OF LABOR TON DUC THANG UNIVERSITY FACULTY OF INFORMATION TECHNOLOGY TON DUC THANG UNIVERSITY HUYNH NHAT HAO - 320H0531 E-COMMERCE FINAL REPORT SERVICE
Trang 1VIETNAM GENERAL CONFEDERATION OF LABOR
TON DUC THANG UNIVERSITY FACULTY OF INFORMATION TECHNOLOGY
TON DUC THANG UNIVERSITY
HUYNH NHAT HAO - 320H0531
E-COMMERCE
FINAL REPORT
SERVICE ORIENTED ARCHITECTURE
HO CHI MINH CITY, 2024
Trang 2VIETNAM GENERAL CONFEDERATION OF LABOR
TON DUC THANG UNIVERSITY FACULTY OF INFORMATION TECHNOLOGY
BAI HOC TON BUC THANG
TON DUC THANG UNIVERSITY
HUYNH NHAT HAO - 320H0531
E-COMMERCE
FINAL REPORT SERVICE ORIENTED ARCHITECTURE
Instructor MASTER DUONG HUU PHUC
HO CHI MINH CITY, 2024
Trang 3ACKNOWLEDGEMENT
We would like to express our sincere gratitude to Mr Duong Huu Phuc - the lecturer who has accompanied us in the Enterprise system development concepts course recently We would also like to thank the Faculty of Information Technology for providing us with the opportunity to carry out this report
During the process of writing this report, there may have been some shortcomings, and we sincerely hope to receive contributions from the teachers to learn from and improve in future reports
Ho Chi Minh city, day 09 month 05 year 2024
Author Huynh Nhat Hao
Trang 4MIDTERM ESSAY COMPLETED AT TON DUC THANG
UNIVERSITY
I hereby declare that this is our report and is under the guidance of Mr Duong Huu Phuc The research contents and results in this topic are honest and have not been published in any form before The data in the tables for analysis, comments and evaluation are collected by the author himself from different sources, clearly stated in the reference section
In addition, the project also uses a number of comments, assessments as well
as data of other authors, other agencies and organizations, with citations and source annotations
If I find any fraud I take full responsibility for the content of my report Ton Duc Thang University is not related to copyright and copyright violations caused by me during the implementation process (if any)
Ho Chi Minh city, 09 May, 2024
Author Huynh Nhat Hao
Trang 5E-COMMERCE SYSTEM SUMMARY
In this final project, I chose to work on creating an E-commerce system application using nodejs This project makes use of ReactJS to support the development of a user interface We utilized features from React js such as component division and accompanying libraries to develop this e-commerce
As a result, the application not only functions as a sales platform but also has attractive graphics The server-side model that I applied for this development
is tree layers, which facilitated smooth teamwork due to clear differentiation
of functions
In addition, creating corresponding Router Controllers and Services helped me focus on writing code to handle user events However, we also encountered difficulties in the development process The first challenge was the lack of intellectual and human resources within the group, resulting in the initial inability to implement some functions Secondly, we realized that we still have not developed the ability to design software that can be considered optimal and suitable for the majority of users Despite these challenges, | effectively applied their knowledge of databases to model objects and design interfaces for an attractive and user-friendly application
Trang 6CHAPTER 2 ANALYSIS AND DESIGN
2.1 Use-case diagram and use-case specification
2.1.2 Use-case specification for each respective function
2.2 Design ERD diagram
Trang 7REFERENCES 33
Trang 8LIST OF FIGURES
Figure 2.1 use-case E-coimmIm€FG€ - 2 2 2 22112211211121 11111111 1110110111881 1 821k ray 14 Figure 2.2 Entity relationship diasram e-coImrm€fce - ¿2c 22c 22c cszsxszs 23 Figure 2.3The architecture fframework of the appÌication ::-cc 552 26 Figure 2.4The layers oŸ server sySf€I - 2 2 22012 11191 2111111111 11111111811 8xx 27 EIgure 2.5 The home page of LÌMMS 2 1.11121111211121 1121 1110111011110 1 110111814 30 Figure 2.6 The dashboard page of system mmaager - 5-c 2225322222322 31 Figure 2.7 Testing apt with postimah 12c 2 1122112111121 112111 111111211111 31
Trang 9LIST OF TABLES
Trang 10LIST OF ABBREVIATIONS
ERD Entity Relationship Diagram
UX User Experience
UI User Interface
Trang 11CHAPTER 1 GENERAL SYSTEM
In this chapter, we will talk about general of system
1.1 Introduce system
In the dynamic realm of modern commerce, the advent of e-commerce platforms has ushered in a new era of convenience, choice, and accessibility for consumers worldwide Within this digital ecosystem, the electronic sector stands as
a beacon of innovation, encompassing a diverse array of products ranging from cutting-edge smartphones to powerful laptops E-commerce has emerged as the predominant channel through which consumers interact with and procure these electronic goods, fundamentally reshaping traditional retail paradigms
The system of e-commerce tailored to electronics sales has evolved in tandem with the rapid pace of technological advancement and shifting consumer behaviors Online platforms dedicated to electronic commerce offer a rich tapestry
of features designed to enhance the shopping experience, including intuitive user interfaces, comprehensive product information, and personalized recommendations based on past preferences and browsing history Moreover, the integration of secure payment gateways and stringent data protection measures instills confidence in consumers, fostering trust and loyalty towards online retailers
One of the defining characteristics of e-commerce in the electronic sector is its global reach and market penetration Through the power of the internet, electronic retailers can transcend geographical boundaries, tapping into diverse demographics and markets across the globe This global accessibility not only expands the potential customer base but also facilitates cross-border trade and collaboration between manufacturers, distributors, and consumers on a scale previously unimaginable
Trang 12Furthermore, the advent of mobile commerce, facilitated by the proliferation
of smartphones and tablets, has catalyzed further growth in the electronic e- commerce sector Mobile-optimized websites and dedicated applications enable consumers to browse, compare, and purchase electronic goods seamlessly, irrespective of their location or time constraints This convergence of mobile technology and e-commerce has fueled a surge in impulsive and on-the-go purchases, driving sales and revenue for electronic retailers
In essence, e-commerce has become the cornerstone of the electronic retail industry, offering unparalleled opportunities for growth, innovation, and market expansion As technology continues to evolve and consumer preferences evolve, the system of e-commerce tailored to electronic sales will undoubtedly continue to adapt and evolve, shaping the future of commerce in an increasingly digital world
1.2 System specification
The e-commerce platform dedicated to the sale of smartphones and laptops
is meticulously crafted to offer an unparalleled shopping experience that seamlessly blends user convenience with cutting-edge functionality At its core lies
a user interface meticulously designed for intuitive navigation across devices, ensuring effortless product discovery and informed decision-making Whether accessed from a desktop or a mobile device, the platform presents a wealth of product information through high-resolution images, detailed descriptions, and interactive features such as product comparison tools and customer reviews, empowering shoppers with the insights they need to make confident purchases
Behind the scenes, a robust product management system lies at the heart of the platform, capable of efficiently handling a diverse array of products spanning various brands, models, and configurations Through meticulous categorization and organization, customers can easily filter and find the exact smartphone or laptop that meets their specifications and preferences Meanwhile, the platform's seamless
Trang 13integration with inventory management systems ensures accurate stock availability and real-time updates, preventing disappointments due to out-of-stock items
The e-commerce functionality of the platform is engineered with security and convenience in mind, offering customers a frictionless checkout process supported by a variety of payment options, including credit/debit cards, digital wallets, and bank transfers State-of-the-art encryption protocols safeguard sensitive financial information, instilling confidence in customers and reinforcing trust in the platform's commitment to data security Moreover, robust order tracking and management capabilities provide customers with real-time updates on the status of their purchases, from order confirmation to delivery, enhancing transparency and accountability throughout the shopping journey
In addition to its transactional capabilities, the platform prioritizes customer engagement and retention through sophisticated customer management features User account functionality enables customers to create personalized profiles, store payment and shipping preferences, and track their order history, fostering a sense of loyalty and repeat business Furthermore, leveraging data analytics and machine learning algorithms, the platform delivers personalized product recommendations and targeted promotions tailored to each customer's unique preferences and browsing behavior, driving customer satisfaction and maximizing sales opportunities
To ensure compliance with stringent data protection regulations and industry standards, the platform is fortified with robust security measures and undergoes regular audits and assessments to identify and mitigate potential vulnerabilities Strict adherence to regulations such as GDPR safeguards customer privacy and data nights, reinforcing the platform's commitment to ethical business practices and customer trust
Underpinning the platform's capabilities is a high-performance infrastructure
Trang 14engineered for scalability and reliability With the ability to seamlessly handle surges in website traffic and transaction volumes, the platform is equipped to accommodate future growth and expansion, ensuring a consistently smooth and responsive shopping experience for customers
Furthermore, the platform's flexibility extends to its integration capabilities, allowing seamless interoperability with third-party systems and services such as inventory management software, shipping providers, and marketing platforms This interoperability facilitates streamlined business operations and enables the platform
to adapt and evolve in response to changing market dynamics and customer needs
In summary, the e-commerce platform specializing in smartphones and laptops embodies a synthesis of cutting-edge technology, user-centric design, and stringent security measures By prioritizing user experience, security, and scalability, the platform sets a new standard for excellence in electronic commerce, empowering customers to shop with confidence and convenience in an ever- evolving digital landscape
13 Scope of project
The scope of our project encompasses the comprehensive development of
an innovative e-commerce platform tailored specifically for the retail of smartphones and laptops As the culmination of our university subject, this final project represents a significant undertaking that will involve the collaborative efforts of our two-member team Our objective is to conceive, design, implement, and deploy a fully functional online marketplace that not only meets but exceeds the expectations of modern consumers in terms of usability, functionality, and security
At the core of our project lies the ambition to create a user-centric platform that prioritizes ease of use and accessibility across various devices and screen sizes To achieve this, we will meticulously design and develop a user interface
Trang 15that is both visually appealing and intuitively navigable, ensuring that customers can effortlessly browse through our product catalog and make informed purchasing decisions Moreover, we will incorporate advanced features such as product comparison tools, customer reviews, and personalized recommendations to enhance the overall shopping experience and foster customer engagement and loyalty
In terms of functionality, our platform will offer a robust set of e-commerce capabilities designed to streamline the entire purchasing process from start to finish This includes comprehensive product management functionalities to efficiently handle a diverse range of products, flexible pricing and discount mechanisms to incentivize purchases, and a secure and seamless checkout process supported by multiple payment gateways Additionally, we will implement advanced order management and fulfillment features to ensure timely delivery and customer satisfaction
Security is paramount in the development of our e-commerce platform, especially considering the sensitive nature of financial transactions and personal data involved in online shopping As such, we will employ industry-leading security protocols and encryption techniques to safeguard customer information and prevent unauthorized access or data breaches Our platform will also adhere to strict compliance standards, including GDPR and PCI DSS, to ensure the highest levels of data protection and regulatory compliance
In addition to core functionalities, our project scope extends to the integration of third-party systems and services to augment the capabilities of our platform This may include integration with inventory management systems, shipping providers, payment gateways, and marketing tools to enhance efficiency, scalability, and overall performance Furthermore, we will explore opportunities for customization and extensibility to accommodate future enhancements and modifications as the platform evolves over time
Overall, our project represents a comprehensive endeavor to develop a
Trang 16state-of-the-art e-commerce platform that not only meets the academic requirements of our university subject but also serves as a testament to our capabilities and expertise in software development By delivering a high-quality, feature-rich solution that addresses the needs and preferences of modern consumers, we aim to showcase our dedication to excellence and innovation in the field of e-commerce
1.4 Practical significance
The practical significance of our project, centered on the development of an e-commerce platform specializing in smartphones and laptops, extends far beyond the confines of our university subject In today's rapidly evolving digital economy, characterized by a paradigm shift towards online commerce, our project addresses a critical need for sophisticated, user-centric e-commerce solutions that cater to the diverse needs and preferences of modern consumers With the proliferation of smartphones and laptops as indispensable tools for communication, productivity, and entertainment, the demand for a seamless online shopping experience for these devices has never been greater By creating a platform that offers intuitive navigation, rich product information, and secure transactions, we aim to bridge the gap between consumers and retailers, facilitating seamless transactions in an increasingly digitized marketplace
Moreover, the practical significance of our project is underscored by its potential to drive tangible benefits for both consumers and businesses alike For consumers, our platform represents a one-stop destination for all their smartphone and laptop needs, offering a curated selection of products from trusted brands, comprehensive product information, and personalized recommendations based on their preferences and browsing history Additionally, our platform's integration with secure payment gateways ensures peace of mind for consumers, safeguarding their sensitive financial information and protecting them from potential security threats
Trang 17For businesses, particularly retailers and manufacturers in the electronics industry, our platform presents a valuable opportunity to expand their reach and grow their customer base in an increasingly competitive market By leveraging our platform's advanced features and functionalities, businesses can effectively showcase their products to a global audience, differentiate themselves from competitors, and drive sales and revenue growth Moreover, our platform's integration with third-party systems and services, such as inventory management software and shipping providers, streamlines business operations, enhances efficiency, and reduces overhead costs
Furthermore, the practical significance of our project extends beyond its immediate impact on consumers and businesses to encompass its broader implications for the digital economy and society as a whole By equipping consumers with the tools and resources they need to make informed purchasing decisions in an online environment, our platform promotes digital literacy and empowerment, enabling individuals to navigate the complexities of the digital marketplace with confidence and agency Additionally, our project serves as a valuable learning opportunity for us as aspiring software developers, providing us with hands-on experience in software development methodologies, project management principles, and collaborative teamwork skills that are essential for success in today's technology-driven job market
In summary, the practical significance of our project lies in its ability to address real-world challenges in e-commerce while driving tangible benefits for consumers, businesses, and society as a whole By creating a user-centric, feature-rich platform that meets the evolving needs and preferences of modern consumers, we aim to contribute to the ongoing digital transformation of the global economy and empower individuals to thrive in an increasingly digitized world
1.5 Report layout
Trang 18Introduction:
e Brief overview of the project objectives and context
e Importance of the project in the field of e-commerce and software development
Project Overview:
e Background information on the project, including its purpose and goals
@ Overview of the e-commerce platform for selling smartphones and laptops
e Description of the project team and their roles
Scope of the Project:
e@ Detailed explanation of the project scope, including its limitations and constraints
e Description of the features and functionalities included in the scope
e Justification for the chosen scope and its practical significance
Practical Significance:
Discussion of the practical significance of the project in the context of e- commerce and digital economy
e Analysis of the potential benefits for consumers, businesses, and society
© Reflection on the broader implications of the project beyond its immediate scope
Trang 19e Breakdown of the user interface, product management, e-commerce functionality, security measures, performance, scalability, integration, and customization
Results and Evaluation:
e Presentation of the results obtained from the implementation of the e- commerce platform
e Evaluation of the platform's performance, usability, security, and overall effectiveness
e Comparison with existing e-commerce solutions and industry standards Conclusion:
e Summary of the key findings and insights from the project
e Reflection on the achievements, challenges, and lessons learned
e Recommendations for future projects and areas of further research
Trang 20the primary database, managed through the Mongoose ORM Additionally, Redis will be utilized as a supplementary database for efficient data caching This combination ensures a robust and scalable architecture, with ReactJS providing a dynamic and interactive user interface, Node.js and Express.js facilitating the efficient handling of server-side logic, MongoDB and Mongoose offering seamless data management, and Redis enhancing performance through intelligent data caching mechanisms Now | will explain why | select technology stack
ReactJS is a powerful JavaScript library for building user interfaces It offers
a component-based architecture, which makes it easy to develop reusable and modular UI components React's virtual DOM enables efficient updates to the UI, resulting in faster rendering and improved performance Its large ecosystem of libraries and tools, along with its popularity and community support, make it an excellent choice for building dynamic and interactive web applications
Redux Toolkit is a streamlined library that simplifies state management in React applications It offers a structured approach to handling complex application states, reducing boilerplate code and promoting code maintainability By abstracting away Redux complexities and providing built-in features like createSlice, createAsyneThunk, Redux Toolkit enhances developer productivity Its seamless integration with Redux DevTools facilitates real-time debugging, ensuring smoother development workflows With strong community support and active maintenance, Redux Toolkit is a reliable choice for building scalable and maintainable React applications
Node.js is a runtime environment that allows you to run JavaScript code outside the web browser It uses an event-driven, non-blocking I/O model, which makes it lightweight and efficient for building scalable network applications
Trang 21Node.js is particularly well-suited for building, APIs, and real-time applications due
to its asynchronous nature and support for handling concurrent connections
Express is a minimalist web application framework for Node.js It provides a robust set of features for building web servers and APIs with Node.js, including routing, middleware support, and template engines Express simplifies the process
of handling HTTP requests and responses, making it easier to develop backend logic and handle various types of requests effectively
Mongoose is an elegant MongoDB object modeling tool designed for Node.js It provides a straightforward way to work with MongoDB databases by defining schemas, models, and queries in JavaScript Mongoose simplifies data validation, schema management, and interactions with MongoDB, allowing you to focus more on application logic and less on database operations It's a popular choice for Node.js developers working with MongoDB due to its ease of use and
flexibility
Redis is an open-source, in-memory data structure store that can be used as a database, cache, and message broker It's known for its speed, simplicity, and versatility, making it an excellent choice for various use cases, including caching frequently accessed data, session management, real-time analytics, and pub/sub messaging Integrating Redis into your application can help improve performance, scalability, and responsiveness by offloading time-consuming tasks from the primary database and reducing latency for frequently accessed data
API Gateway: Amazon API Gateway is a fully managed service that makes
it easy for developers to create, publish, maintain, monitor, and secure APIs at any scale It acts as a front door for applications to access data, business logic, or functionality from backend services, such as Lambda functions, AWS Elastic Beanstalk, AWS Fargate, or EC2 instances, or any publicly accessible HTTP endpoint