- Ionic 4
- Angular 7
Run npm install to install necessary packages
Run npm run start to start a development server on your local, and calling stage-test.practera.com for API
Run npm run local to start a development server on your local, and calling 127.0.0.1:8080 for API
- Merge
developbranch tomaster(if we are releasing develop branch) - Merge
masterbranch torelease/eos - Create a new release in Github with the release pull request link as the description
- Change the version number on Slack
team-devchannel
masteris always + 0.01 version ahead oflivedevelopis always + 0.1 version ahead oflive
- Before we deploy app to live server, we'll need to create a
newrelic.jsfile from project root directory's/assetsfolder - Please select either
newrelic.js.devornewrelic.js.prodbased on the deployment environment - Live environment, use
newrelic.js.prod. Development environment, usenewrelic.js.dev - With the step above, new relic can collect and group collected information based on different environment.
npm run e2etest all features for desktop & Android & Iphonenpm run e2e-devused for devs to develop testsnpm run e2e-sandboxused to run automation test on sandbox
- Copy & paste
e2e/config/index.default.tsand change the name toindex.tsand fill in correct accounts - Copy & paste
e2e/protractor-dev.default.conf.jsand change the name toprotractor-dev.conf.js - Change the feature file path in
e2e/protractor-dev.conf.jsto the feature that you are developing - If you need to develop automation test for mobile, uncomment the
chromeOptions->mobileEmulationpart insidee2e/protractor-dev.conf.js - run
npm run e2e-devto see the result
*.com?do=secure&auth_token=*
*.com?do=secure&auth_token=*&redirect=*&tl=*
auth_token- the auth token used to authenticate userredirect- the page you will be redirect totl- timeline id of the program you are in
home- redirect to home pageproject- redirect to project pageactivity- redirect to project page with the following parametersact- activity id
assessment- redirect to assessment page with the following parametersact- activity idctxt- context idasmt- assessment id
topic- redirect to topic page with the following parametersact- activity idtop- topic id
reviews- redirect to reviews list pagereview- redirect to assessment review page with the following parametersctxt- context idasmt- assessment idsm- submission id
chat- redirect to chat list pagesettings- redirect to settings page
*.com?do=secure&auth_token=abcdefg&redirect=project&tl=312will redirect you to the project page*.com?do=secure&auth_token=abcdefg&redirect=assessment&tl=312&act=231&ctxt=393&asmt=928will redirect you to the assessment page
*.com?do=resetpassword&key=*&email=*
*.com?do=registration&key=*&email=*
See buildspec.yml for the steps needed for the CodeBuild.
Any variables that will be passed with the prefix CUSTOM_ will be merged into the the src/environments/environment.custom.ts file and in the angular.json. See the env.sh file for details.
Other variables that need to be passed to the codebuild project are:
- S3_BUCKET - the S3 bucket where the code will be deployed.
- CF_DIST_ID - the CF distribution that will be invalidated when a deploy happens
- CUSTOM_COUNTRY - country for the installation, supported values -
AUS,US - CUSTOM_JS_ENVIRONEMENT - used in angular.json for new relic, possible values
prod,dev - CUSTOM_ENVIRONMENT - the env variable used in the src/environments/environment.custom.ts. Possible values
develop,sandbox,stage,live - CUSTOM_S3_BUCKET - the bucket used for the filestack uploads
- CUSTOM_API_ENDPOINT - the API endpoint
- CUSTOM_APP - the name of the app, used to prefix the file uploads, needed for multi tenancy
- CUSTOM_AWS_REGION - the region the app will work in
- CUSTOM_GRAPH_QL - the graph QL endpoint
- CUSTOM_INTERCOM - intercom details
- CUSTOM_APPKEY - Appkey used to talk to the API
- CUSTOM_PUSHERKEY - pusherKey used
- CUSTOM_FILESTACK_SIGNATURE - the filestack signature
- CUSTOM_FILESTACK_POLICY - the filestack policy
- CUSTOM_FILESTACK_VIRUS_DETECTION - the filestack virus detection policy
- CUSTOM_FILESTACK_KEY - the filestack key