DEVELOPMENT OF A WEB SERVICE FOR ONLINE SHOPPING AND PRODUCT SALES
Main Article Content
Abstract
Introduction. In today's digital world, online commerce has become an essential
component of everyday life, further accelerated by the COVID-19 pandemic and ongoing armed
conflict in Ukraine. The growing demand for convenient, secure, and scalable online trading
platforms motivates the development of purpose-built web services. The primary goal of this work is to
design and implement a full-stack web service supporting both the purchase and sale of goods through
the Internet.
Purpose. The purpose of this article is to present the process of developing a web service for
online shopping and product sales: from analysis of existing analogues and technology selection to
implementation and functional demonstration of the finished service.
Results. The article examines existing Ukrainian e-commerce platforms – "Rozetka" and
"Prom" – and identifies functional requirements for the service under development. The technology
stack is justified: Java and Spring Boot for the server side, TypeScript and Angular for the client side,
PostgreSQL as the relational database, Flyway for database migration management, and Stripe for
secure online payment processing. The RESTful API architecture ensuring stateless client-server
communication is described, and key code fragments from both server-side and client-side
components are provided. The implemented web service supports four operation modes – guest,
authorized buyer, administrator, and super-administrator – each with a dedicated interface. Core
functionality includes user registration and authentication, product browsing with category-based
navigation and sorting, a shopping cart, bank card payment with automatic purchase report
generation, and a full administrative interface for managing products, categories, and user accounts.
The payment module was tested using Stripe's sandbox environment, confirming correct transaction
processing.
Conclusion. The article presents the design and implementation of a web service for online
shopping and product sales. The results of the study can be applied in the development of commercial
trading platforms and the improvement of existing e-commerce solutions. The main outcomes include
a comparative analysis of analogous services, justification of the selected technology stack, full
implementation of the service using Java/Spring Boot and TypeScript/Angular, integration of the
Stripe payment platform, and demonstration of all major functional modules.
Article Details
References
Schildt, H. (2014). Java: The Complete Reference (9th ed.). New York: McGraw-Hill Education. 1312 p.
Spring Framework Core Technologies. Official Reference Documentation. URL:
https://docs.spring.io/spring-framework/docs/current/reference/html/core.html
Spring Security Official Reference Documentation. URL: https://docs.spring.io/spring-security/reference/
Spring Data Official Reference Documentation. URL: https://docs.spring.io/springdata/commons/docs/current/reference/html/
Spring Data JDBC Official Reference Documentation. URL: https://docs.spring.io/springdata/jdbc/docs/current/reference/html/
Obe, R., Hsu, L. (2017). PostgreSQL: Up and Running (3rd ed.). Sebastopol: O'Reilly Media. 336 p.
Flyway Official Documentation. URL: https://flywaydb.org/documentation/
Stripe Developer Documentation. URL: https://stripe.com/docs
MDN Web Docs. HTML: HyperText Markup Language. URL: https://developer.mozilla.org/enUS/docs/Web/HTML
MDN Web Docs. CSS: Cascading Style Sheets. URL: https://developer.mozilla.org/en-US/docs/Web/CSS
TypeScript Official Documentation. URL: https://www.typescriptlang.org/docs/
Angular Official Documentation. URL: https://angular.io/docs
Fielding, R. T. (2000). Architectural Styles and the Design of Network-based Software Architectures. Ph.D.
dissertation, University of California, Irvine. URL: https://ics.uci.edu/~fielding/pubs/dissertation/top.htm