Ứng dụng frontend cho cửa hàng di động, xây bằng React (Create React App). Tài nguyên tĩnh và trang HTML có trong public/; mã React nằm trong src/.
- Frontend nhiều trang, gồm các trang sản phẩm, giỏ hàng, đơn hàng, khách hàng, tìm kiếm.
- Tương tác với API qua Axios; token/cookie có thể được quản lý bằng
js-cookie. - State management: Redux + @reduxjs/toolkit, với persistence qua
redux-persist.
- Điều hướng đa trang với
react-router-dom. - Quản lý trạng thái phức tạp bằng Redux Toolkit.
- Thông báo/alert bằng
sweetalert2và format thời gian bằngmoment.
- React, JavaScript (ES6+)
- Redux, @reduxjs/toolkit, redux-persist
- react-router-dom
- axios, js-cookie
- moment, sweetalert2
- Create React App (react-scripts)
src/— mã nguồn Reactpublic/— HTML tĩnh, CSS, images, scriptspackage.json— scripts & dependencies
- Cài dependencies:
Set-Location -Path 'C:\React\projectWithToken'
npm install- Chạy chế độ phát triển:
npm start- Tạo bản build production:
npm run buildXem file LICENSE.