This repository contains the Phoenix based application used to visualize event data at FCC. The application is written in Angular.
To install the application run
yarn installNote1: Make sure that you use Yarn2 or later
Note2: To install Angular CLI globally use:
npm install -g @angular/cli
After installation, to serve the application locally run
yarn serveNavigate to http://localhost:4200/. The application will automatically
reload if you change any of the source files.
In order to have access to the latest development version of phoenix two links to the Phoenix sub-packages need to be created:
"phoenix-ui-components" # Pointing to packages/phoenix-event-display
"phoenix-event-display" # Pointing to packages/phoenix-ng/projects/phoenix-ui-components"Also, do not forget to build phoenix sub-packages, otherwise you will get compilation errors.
In packages/phoenix-ng/projects/phoenix-ui-components/package.json you need to modify the exports. The package.json has an exports field for ./theming, which Node.js treats it as strict. And once exports exists, any subpath not listed (including '.') is blocked. This is a workaround for manually liked files and not something that should be commited.
".": {
"types": "./dist/index.d.ts",
"default": "./dist/fesm2022/phoenix-ui-components.mjs"
},
To compile the package:
yarn install # Don´t forget to install the dependencies
cd packages/phoenix-ng
yarn build:ui-componentsTo compile the package:
yarn install # Don´t forget to install the dependencies
cd packages/phoenix-event-display/
yarn tsc:build- Production version is available from GitHub page and corresponds to the latest tagged version.
- The
mainbranch holds the latest development version available from here.
Production version should be build and deployed from latest tagged version and
development version from the main branch with the help of following two
commands
yarn build:prod
yarn deploy:prodor
yarn build:dev
yarn deploy:dev