Dwinzo_dev/app
Gomathi b350bc6d9e Refactor ComparisonScene and Analysis components; update simulation logic and UI
- Removed unused pause button store from ComparisonScene.
- Added commented-out mock data setup in ComparisonScene for testing.
- Updated default values in Analysis component for production capacity and ROI calculations.
- Adjusted ProductionCapacity component to reflect monthly production capacity.
- Enhanced ROISummary to calculate payback date and improved net profit calculations.
- Modified ThroughputSummary to calculate units per hour based on shift length.
- Improved ComparisonResult to dynamically display compared products' data.
- Updated EnergyUsage to randomize data for better testing.
- Refined ROIData calculations to include labor count and adjusted cost calculations.
- Enhanced production capacity calculations in productionCapacityData.
- Updated throughput calculations in throughPutData to consider shift length and yield rate.
- Cleaned up console logs in vehicleInstance for better readability.
- Added productionCapacity field to CompareProduct interface in store.
- Minor styling adjustments in simulation.scss for better layout.
2025-06-12 16:39:25 +05:30
..
.github
.husky
docs docs: Update project structure documentation for clarity and guidelines 2025-04-10 17:02:36 +05:30
public
scripts
src Refactor ComparisonScene and Analysis components; update simulation logic and UI 2025-06-12 16:39:25 +05:30
.env
.gitignore
Dockerfile
README.md
nginx.conf
package-lock.json
package.json
tsconfig.json

README.md

Getting Started

Follow these steps to set up and run the project locally.

Prerequisites

Ensure you have the following installed on your system:

Installation

  1. Clone the repository:

    git clone https://github.com/S0Vishnu/react-production-project-boilerplate.git
    cd react-production-project-boilerplate
    
  2. Cloning repository with User Credentials:

    git clone https://your_username:password@github.com/S0Vishnu/react-production-project-boilerplate.git
    cd react-production-project-boilerplate
    

    note: if password contains special charecters use:

    • @ → %40
    • : → %3A
    • / → %2F
    • ? → %3F
    • & → %26
    • = → %3D
    • ! → %21
  3. Install the dependencies:

    npm install
    
  4. Start server:

    npm start
    
  5. Build the app for production:

    npm run build
    
  6. Tests

    This project includes both unit tests using Jest and end-to-end (E2E) tests using Cypress. Heres how you can run and manage these tests.

    Unit Tests (Jest) Unit tests are located in the src/tests/unit/ directory. They test individual components and functions to ensure they work as expected. Jest is used for running these tests.

    Running Unit Tests To run the unit tests, use the following command:

    npm run test
    

    End-to-End (E2E) Tests (Cypress) Cypress can be run in two modes

    1. Interactive Mode:

      npm run cypress:open
      
    2. Headless Mode:

      npm run cypress:run
      

Run Documentation(Docsify)

  1. Installation (if needed):

    npm i docsify-cli -g
    
  2. Run Command:

    docsify serve docs