Магазин-подопытный для курсов по тестированию: каталог, фильтры, корзина, оформление заказа.
Нужен стенд, на котором есть что тестировать: несколько экранов, состояние между ними, обращения к API и оформление заказа с проверками. При этом он маленький настолько, что читается целиком.
Собран как SPA плюс собственный API, поэтому работает автономно, без внешних сервисов.
Make sure you have the following installed:
- Unix (Linux, Macos)
- Node.js (>= 26.x)
- npm
- Make (build tool)
- Git (version control system)
- Docker (optional, for containerized environments)
Install dependencies:
make installStart the development server:
make startOpen your browser and navigate to http://localhost:8080.
make start runs both the front-end (Vite on :8080) and the internal API (Fastify on :3001); Vite proxies /api to it. In production a single Fastify process serves the built SPA, the product images and the /api endpoints.
The product catalogue and images are a self-contained snapshot under server/data/products.json and public/product-images/. To regenerate it run:
make seedThis repository is created and maintained by the team and the community of Hexlet, an educational project. Read more about Hexlet.
