This project was generated with Angular CLI version 7.3.8.
- Product Owner: Fernando Sanchez
- Experienced Devs:
- Fernando Sanchez
- Devin Noth
- Jenny Knuth
Angular-3D-Maven is an implementation of the base LASP 3D application for the MAVEN mission. It displays a 3D rendering of Mars with the MAVEN Spacecraft orbiting it. Users can choose from different datasets to plot as well as load visualizations of the data in the viewer itself. This data is usually collected by MAVEN itself, but also can be generated by scientific models and other sources.
Run npm install
to install package dependencies (requires node/npm to be installed globally on your machine).
Run npm start
for a local server. Navigate to http://localhost:4200/
.
There are two environment files:
src/environments/environment.ts
: used for running a local serversrc/environment/environment.prod.ts
: used for running a production server
IMPORTANT: The developer is responsible for obtaining one of the three pieces of the environment file on their own. This is the Cesium Ion Token. Instructions for obtaining one can be found below.
-
Navigate to https://cesium.com/ion/ and sign up for a free account.
-
Click on the Access Tokens tab on the Cesium Ion homepage, then select Create Token.
-
Select a name for your new token and choose the scopes or restrictions to place on that token. Note, these are not too significant to running the application. For reference, we used the
assets:read
andgeocode
scopes for the development token. -
After creating your token, click on your new token and copy and paste the value under Token into the
CESIUM_KEY
string in your environment files. You do NOT need multiple keys for each environment file.
The LATIS_BASE constant in environments/environment.ts
will determine which latis catalog you will hit with the local development branch to get all the needed metadata.
Angular-3D-Maven uses a LaTiS API endpoint to serve data. Additional documentation for this specific LaTiS instance can be found at https://lasp.colorado.edu/maven/sdc/public/latis/dap/.
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
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.