Skip to content
This repository has been archived by the owner on Oct 4, 2022. It is now read-only.

PartChain/ui

Repository files navigation

PartChain User Interface

Note: This repository is still under active development! Breaking changes are possible, and we are working on improving code quality.

Alt text

PartChain is a blockchain-based system for tracking parts along the supply chain.

A high level of transparency across the supplier network enables faster intervention based on a recorded event in the supply chain.

This saves costs by seamlessly tracking parts and creates trust through clearly defined and secure data access by the companies and persons involved in the process.

Application

This application serves as a user entry point to PartChain network.

It's written in Typescript based on Angular framework.

Source files are expose statically thru the NGINX web server.

For developers:

Clone the source locally:

$ git clone ${path}
$ cd partchain-webapp

Configurations

If you're using angular for the first time, run npm install -g @angular/cli to install the angular command line interface.

This project was generate with Angular CLI version 10.2.4.

Find here documentation to support you during the development and configuration of the app.

Login Process

The user authentication is manage by keycloak and each organization has its own realm.

This application supports multi tenancy authentication, so you must specify your realm to be redirect to the correct auth page.

E.g. http://localhost:4200/lion

If multi tenancy is disable, the default realm is considered.

You can manage those configurations on the environment files.

environment.ts
export const environment = {
  multiTenant: true,
  defaultRealm: 'lion',
  ...
};

Development Guidelines

These guidelines are define to maintain homogeneous code quality and style. It can be adapted as the need arises.

New and old developers should regularly review this guide to update it as new points emerge and to sync themselves with the latest changes.

UI Components

Find here the documentation with all the available ui components.

License

Apache License 2.0