Model Assessment and Decision Analysis for Marine Environments web application. Prototype Decision Support app for the ADRIA.jl platform and CoralBlox model. This project also contains the Reef Guide app.
This project was generated with Angular CLI version 18.0.6.
One-time setup:
- Install Node v22
In a Linux environment consider using Node Version Manager. npm install -g @angular/cli
npm install --legacy-peer-deps
Note: --legacy-peer-deps will be necessary until ArcGIS updates peer deps to Angular 18.
A script security error may be raised if using PowerShell. If this occurs, run the following to fix Powershell execution policy:
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
Run ng serve
for a dev server. Navigate to http://localhost:4200/
.
The application will automatically reload if you change any of the source files.
The APIs are proxied to avoid CSRF issues; see proxy.conf.json
A working ReefGuide Web API instances is also needed.
If a local instance is desired, clone and set up the Web API following the instructions here.
The webApiUrl
entry in the configuration file needs to point to this, or an alternate,
API instance. See the Configuration section.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
The environment pattern is used for configuration. During development, environment.development.ts is used. The APIs are proxied by the local dev server to avoid CORS issues, see proxy.conf.json.
The production build uses environment.ts.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory.
After the Build step:
cd dist/adria-app/browser
aws s3 sync . s3://BUCKET_NAME --delete
(This assumes you have configured your AWS CLI)
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via a platform of your choice. To use this
command, you need to first add a package that implements end-to-end testing capabilities.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.