Project management

This page contains info relevant to project management activities, typically done by senior dev team members.


Dev commands

Given below are different commands you can run to build the application in different operating systems.

Command Description
npm run build Build the app. Your built files are in the /dist folder.
npm run build:prod Build the app with Angular aot. Your built files are in the /dist folder.
npm run deploy:web Will deploy the app onto the Github's gh-pages branch.
Prerequisites:
1. Add Environment variable of GH_TOKEN=<Github Personal Access Token> with the permission of repo.
2. build:prod:web command's --base-href argument in package.json must have the following format https://<OrgName or Username>.github.io/CATcher/.
3. If you are deploying outside of CATcher-org then it would be necessary to create a new OAuth application and change the clientId in environment.prod.ts
4. If you are deploying outside of CATcher-org, you would also need to deploy your own instance of proxy server using gatekeeper and change the appropriate variables in environment.prod.ts.