terrabrasilis / webmap

Terrabrasilis WebMap for exploring the deforestation data from GeoServices.
http://terrabrasilis.dpi.inpe.br/app/map/deforestation
GNU General Public License v3.0
4 stars 3 forks source link

terrabrasilis

Build Status Dependency Status Coverage percentage standard Code Climate

Configuring the environment variables

export NODE_ENV="development"
export PROXY_OGC="http://terrabrasilis.dpi.inpe.br/proxy?url="; 
export TERRABRASILIS_API_HOST="http://terrabrasilis.dpi.inpe.br/terrabrasilis/api/v1/"
export TERRABRASILIS_BUSINESS_API_HOST="http://terrabrasilis.dpi.inpe.br/business/api/v1/"

About

TerraBrasilis web portal is a platform developed by INPE to provide access, query, analysis and dissemination of spatial data generated by government environment monitoring programs such as PRODES and DETER.

Development Setup

Prerequisites

Install Node.js which includes Node Package Manager

Setting Up the project

This project was generated with Angular CLI version 8.2.1.

Install the Angular CLI globally:

npm install -g @angular/cli

Development server

This project was generated with Angular CLI version 8.2.1.

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

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.

Build

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.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Build Docker image

Run ./build.sh staging to generate homologation image and use the automatically collected version of package.json

Run ./build.sh vx.y.z staging to generate the homologation image and your desired version.

Run ./build.sh vx.y.z to generate the production image and your desired version.

Run ./build.sh to generate the production image and use the automatically collected version of package.json

Change the package.json version before creating a new image to avoid overwriting the old one.

Run npm version minor to change minor number version (use the semantic versioning https://semver.org/);

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.