You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Менеджер в /admin/orderlist натискає "Вказати" навпроти замовлення
Вводить суму доставки + нотатку (наприклад: "НП відділення №5, Львів")
Клієнт бачить оновлену суму на сторінці замовлення
💳 Способи оплати
Накладений платіж НП — клієнт платить при отриманні
Банківський переказ — менеджер надсилає реквізити
📦 API ендпоінти
Товари
GET /api/products — список (з пошуком і пагінацією)
GET /api/products/top — топ-3 для каруселі
GET /api/products/:id — один товар
POST /api/products — створити (адмін)
PUT /api/products/:id — оновити (адмін)
DELETE /api/products/:id — видалити (адмін)
POST /api/products/:id/reviews — додати відгук
Користувачі
POST /api/users — реєстрація
POST /api/users/login — вхід
POST /api/users/logout — вихід
GET /api/users/profile — мій профіль
PUT /api/users/profile — оновити профіль
GET /api/users — всі юзери (адмін)
GET /api/users/:id — юзер за id (адмін)
PUT /api/users/:id — оновити юзера (адмін)
DELETE /api/users/:id — видалити юзера (адмін)
Замовлення
POST /api/orders — створити замовлення
GET /api/orders — всі замовлення (адмін)
GET /api/orders/myorders — мої замовлення
GET /api/orders/:id — замовлення за id
PUT /api/orders/:id/pay — позначити як оплачено
PUT /api/orders/:id/deliver — позначити як доставлено (адмін)
PUT /api/orders/:id/shipping — встановити доставку НП (адмін)
About
Demo version of an e-commerce platform for plumbing products built with the MERN stack (MongoDB, Express.js, React, Node.js). The project demonstrates core online store functionality, including product catalog, shopping cart, user authentication, and order management. Developed as part of a Bachelor's thesis.