Coder Social home page Coder Social logo

aokmen / stock_app_react-project Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 6.59 MB

The Stock Management System is a web application designed to manage inventory and sales data. It provides a user-friendly interface for tracking sales, profits, brands, and firms. This README.md file provides an overview of the project's main components and functionalities.

Home Page: https://stock-frontend-six.vercel.app/

HTML 1.46% JavaScript 98.49% CSS 0.05%
axios-react mui react redux redux-toolkit reduxpersist tailwindcss tremor

stock_app_react-project's Introduction

Project Name: Stock App React Redux

alt_text

Stock Management System

Overview

The Stock Management System is a web application designed to manage inventory and sales data. It provides a user-friendly interface for tracking sales, profits, brands, and firms. This README.md file provides an overview of the project's main components and functionalities.

Components and Libraries

  • React: The project is built using the React library for building user interfaces.
  • Material-UI: Material-UI is used for styling and UI components.
  • Tremor Chart: The Tremor Chart library is used for data visualization.
  • Redux Toolkit: Redux Toolkit might be used for state management, but the code snippets related to Redux are currently commented out.

Dashboard

Home Component

  • The Home.js component serves as the dashboard's landing page.
  • It displays key performance indicators (KPIs) using cards and charts.
  • KPIs include sales, profits, and customer metrics.
  • Data is fetched using the useStockCall hook when the component mounts.

KpiCards Component

  • The KpiCards.js component displays KPIs as cards on the dashboard.
  • It dynamically updates KPI values when data changes.

Charts Component

  • The Charts.js component visualizes historical data using interactive charts.
  • Users can analyze sales and profit trends over time.

Inventory Management

Brands Component

  • The Brands.js component manages brand information.
  • Users can view, add, and edit brand details.
  • Brand data is fetched from the server using the useStockCall hook.
  • Brand images can be uploaded when creating or editing a brand.

Firms Component

  • The Firms.js component handles firm data.
  • It allows users to view, create, and edit firm information.
  • Firm data is retrieved from the server using the useStockCall hook.
  • The component features a modal for adding new firms.

User Authentication

Login Component

  • The Login.js component provides a login interface.
  • Users can access their accounts by entering their credentials.
  • Form validation is implemented using Formik and Yup schemas.
  • User authentication is handled by the useAuthCall hook.

Register Component

  • The Register.js component enables user registration.
  • Users can create new accounts with their personal information.
  • Form validation ensures data accuracy.
  • Registration is handled by the useAuthCall hook.

Shared Components and Libraries

  • Material-UI: Material-UI is used for building the user interface and styling components.
  • React: The project is built using the React library for creating reusable UI components.
  • Redux: Redux is used for state management, but some code snippets related to Redux are commented out.
  • Formik and Yup: Formik and Yup are used for form management and validation.
  • Axios: Axios is used for making HTTP requests to the server.

Overview

The Sales Dashboard project is a web application designed to visualize and manage sales data. It provides insights into sales, profits, and customer metrics. This README.md file provides an overview of the project's components and functionalities.

Sales Component

The Sales.js component is responsible for displaying sales data. It retrieves data using the useStockCall hook and displays it in a table format. The component includes the following features:

  • New Sale Button: Users can create new sales by clicking the "New Sale" button, which opens a modal for entering sale information.
  • Sale Modal: The modal allows users to input sale details such as brand, product, quantity, and price.
  • Initialization: The useEffect hook is used to fetch sales data when the component mounts.

Performance Component

The TremorChart.js component is responsible for visualizing performance metrics. It uses the Tremor Chart library to display key performance indicators (KPIs) over time. The component includes the following features:

  • KPI Selection: Users can switch between different KPIs (Sales, Profit, Customers) using tabs.
  • Area Chart: The component displays an area chart that shows the selected KPI over time.
  • Responsive Design: The chart is responsive and adjusts for different screen sizes.

Data Formatting

The project includes functions for formatting data, such as currency formatting for sales and profit values.

Data Source

The project uses data from an API, related to sales and purchases. This data is used to populate the charts and tables.

stock_app_react-project's People

Contributors

aokmen avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.