A Showcase of Applications Developed using ProvenanceWidgets.
- Open the command line/terminal on your machine and navigate to this project's top-level directory (i.e. where this file is).
- Download and install node, npm from https://nodejs.org/en/download/. Optionally, use the nvm (Node Version Manager) to quickly install and use different versions of node via the command line. Note the compatible node/npm version in package.json > "engines".
- Install compatible Angular
npm install -g @angular/[email protected] npm install- installs required libraries from package.json.
npm run start- Open the browser (preferably Chrome) at http://localhost:4200.
npm run test
npm run buildoutputs the build in the./dist/folder.
- GitHub Actions is setup via the
.github/workflows/build.yamlfile. Built files are pushed togh-pagesbranch and served via GitHub Pages at https://provenancewidgets.github.io/showcase.
- Development: Because the app served from
/while developing locally, index.html must be configured with<base href="/" />andsrc/app/applications/home/component.tsmust have theurlset to${window.location.origin}/#/${route};. - Build: Because the app is eventually served from
/showcase(and not/), index.html must be configured with<base href="/showcase/" />andsrc/app/applications/home/component.tsmust have theurlset to${window.location.origin}/showcase/#/${route};. In addition, we pass--base-href /showcase/in theng buildcommand (already configured to do this as part ofnpm run build, see package.json).