The UI micro-service for Token Factory
dashboard is the UI service for the entire Token Factory project. The project is built with react, styled with Carbon-Design-System, and connecting backend APIs using Apollo Client.
The following commands will install all dependencies and build the project
npm install; npm run build
With all pre-requirements set up correctly, run follwoing command to start project development
npm install; npm run start:development
The following commands will run the project in production mode, it requries a successful build as well as serve being installed locally.
npm install; npm build; npm run start:production
npm install; npm run test
The UI Platform is developed as an isomorphic react application. The following major components are used to build this service.
- NodeJS
- React
- Webpack 3
- Babel
- Apollo/GraphQL
- Carbon Design Systen
- Jest
- d3.js
The full list of npm scripts are described below.
| Command | Description |
|---|---|
npm start |
Starts the application in production mode |
npm run start:development |
Starts development server |
npm run start:production |
Starts production server |
npm run build |
Perform clean build |
npm run build-server |
Build server only |
npm run build:production |
Build for production |
npm run clean |
Clean all old builds |
npm test |
Runs jest tests |
npm run lint |
Runs lint code style check |
These are a few useful links that will help provide technical reference and best practices when developing for the platform.