Fairfood / Trace-Frontend-Dashboard

The Trace Dashboard is an integral front-end component of the Trace platform, a blockchain-enabled ecosystem designed to validate and showcase sustainability efforts in supply chains. It provides a transparent interface for companies to prove their sustainability claims and share the provenance of their products with consumers.

Home Page:https://fairfood.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fair Food Dashboard (V3.0)

Welcome to Fairfood's revolutionary traceability solution! The Fairfood Dashboard, built with Angular 15, provides an intuitive interface for agri-food businesses to trace their products, manage transactions, and monitor stock levels.

Installation

Follow these steps to set up the project on your local machine:

  1. NodeJS and Angular:

    • Install NodeJS (version 14.15 or higher).
    • Install the Angular version (15.2.3).
    • Application's current Angular version is 15 to ensure maximum compatibility
  2. Clone the Repository:

    git clone git@git.cied.in:fairfood/trace-v2/frontend/fairfood-trace-dashboard-v3.git
  3. Navigate to the Cloned Directory:

    cd fairfood-trace-dashboard-v3
  4. Install Dependencies:

    npm install

Getting Started Locally

To run the application on your local machine:

  1. Execute Angular CLI:

    ng serve
  2. Connect to API Server:

    • By default, the application connects to the dev API server.
    • Change the API server in src/environment.ts if needed.

Environments

The Fairfood Dashboard supports four environments:

  1. Dev: Used for development and QA testing.
  2. Stage: Application verification server.
  3. Prod: Live production application.
  4. Demo: For demonstration purposes (for stakeholders/business groups).

Build for Production

To build the application for production:

ng build --prod --c=${production/staging/dev/demo}

Testing

Execute unit tests via Karma:

ng test

Tools and Dependencies

  • ESLint
  • Prettier

External Libraries Used

This project is open source and welcomes contributions! Feel free to explore, modify, and enhance the Fairfood Dashboard. If you have any questions or feedback, please reach out to our community.

About

The Trace Dashboard is an integral front-end component of the Trace platform, a blockchain-enabled ecosystem designed to validate and showcase sustainability efforts in supply chains. It provides a transparent interface for companies to prove their sustainability claims and share the provenance of their products with consumers.

https://fairfood.org

License:GNU Affero General Public License v3.0


Languages

Language:TypeScript 58.2%Language:HTML 34.9%Language:SCSS 6.9%Language:JavaScript 0.0%