π A modern, feature-rich e-commerce management system built with React.js. Manage products, track sales, monitor stock, and view dashboardsβall from one modular and scalable platform.
- π Table of Contents
- π Features
- π Preview
- π How it Works
- π Getting Started
- π Folder Structure
- βοΈ Built Using
- π€ Contributions
- π License
- π Dashboard Analytics: Get insights into product performance and sales.
- π Product Management: Add, update, or delete products with ease.
- π° Sales Tracking: View and manage recent and historical sales.
- π¦ Stock Management: Monitor stock levels in real-time.
- π Localization Support: Switch between English and French with i18n.
- β»οΈ Reusable Components: Shared UI and logic for consistent experience.
- π Service-Based Architecture: Clean separation of API logic.
- Dashboard: Visualize stats through charts and cards.
- Products: Navigate to products tab to create, edit or delete items.
- Sales: Access sales records and revenue insights.
- Stock: Keep an eye on inventory levels.
- Languages: Switch UI language using the toggle (EN/FR).
- Architecture: Modular, scalable structure using React hooks and context.
-
Clone the repository:
git clone https://github.com/yourusername/e-store-reactjs.git
-
Navigate into the project directory:
cd e-store-reactjs -
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Visit
http://localhost:1337in your browser.
src # Source code
βββ App.jsx # Main React app component
βββ main.jsx # Entry point for React app
βββ api # API client and endpoints
β βββ Client.js
β βββ Endpoints.js
β βββ test.js
βββ assets # Static assets like images and styles
β βββ images # Image files
β βββ styles # CSS styles
β βββ App.module.css
β βββ index.css
βββ config # Configuration files
β βββ i18n.js # Internationalization setup
βββ features # Feature modules
β βββ dashboard # Dashboard feature
β β βββ index.jsx # Dashboard main component
β β βββ components # Dashboard UI components
β β β βββ Activity.jsx
β β β βββ CardStats.jsx
β β β βββ charts # Chart components
β β β βββ AreaChart.jsx
β β β βββ BarChart.jsx
β β β βββ PieChart.jsx
β β βββ hooks # Dashboard hooks
β β βββ useGetData.js
β β βββ useProductsStats.js
β β βββ useRecentActivities.js
β β βββ useStockSalesData.js
β βββ products # Products feature
β β βββ index.jsx # Products main component
β β βββ components # Products UI components
β β β βββ ProductTable.jsx
β β βββ hooks # Products hooks
β β β βββ useAddProduct.js
β β β βββ useDeleteProduct.js
β β β βββ useEditProduct.js
β β β βββ useProductModal.js
β β β βββ useProducts.js
β β βββ services # Products services
β β βββ productService.js
β βββ sales # Sales feature
β β βββ index.jsx # Sales main component
β β βββ components # Sales UI components
β β β βββ SaleTable.jsx
β β βββ hooks # Sales hooks
β β β βββ useAddSale.js
β β β βββ useDeleteSale.js
β β β βββ useEditSale.js
β β β βββ useSale.js
β β β βββ useSaleModal.js
β β βββ services # Sales services
β β βββ saleService.js
β βββ stock # Stock feature
β β βββ index.jsx # Stock main component
β β βββ components # Stock UI components
β β β βββ StockTable.jsx
β β βββ hooks # Stock hooks
β β β βββ useAddStock.js
β β β βββ useDeleteStock.js
β β β βββ useEditStock.js
β β β βββ useStock.js
β β β βββ useStockModal.js
β β βββ services # Stock services
β β βββ stockService.js
βββ layouts # Layout components
β βββ MainLayout.jsx
βββ pages # Page components
β βββ ErrorPage.jsx
βββ routes # Route definitions
β βββ index.jsx
βββ shared # Shared components and utilities
βββ components # Shared UI components
β βββ common # Common reusable components
β β βββ Divider.jsx
β β βββ EntityModal.jsx
β β βββ ListTable.jsx
β β βββ Loading.jsx
β β βββ SelectOptions.jsx
β β βββ TableDefault.jsx
β βββ Header # Header components
β β βββ Header.jsx
β βββ SideBar # Sidebar components
β β βββ SideBar.jsx
β βββ Toolbar # Toolbar components
β βββ Toolbar.jsx
βββ hooks # Shared hooks
β βββ useModalState.js
β βββ useSearch.js
β βββ modalStates # Modal state hooks
β βββ useArticleList.js
β βββ useOperationModalState.js
β βββ useProductModalState.js
βββ utils # Utility functions
βββ dateUtils.js
βββ validators.js
- React.js
- Vite
- React Router
- Axios
- React Context API
- i18next
- Chart.js
- CSS Modules
Your contributions are welcome! Feel free to fork the repo and submit pull requests, open issues, or suggest features.
This project is licensed under the MIT License. See the LICENSE file for details.