terrabrasilis / client

Angular 5 webapp containing the maps and the dashboards
http://terrabrasilis.dpi.inpe.br/en/home-page/
1 stars 0 forks source link

Client

This project was generated with Angular CLI version 1.7.3.

Configuring the environment variables

export NODE_ENV="development"
export INPE_PROXY="http://terrabrasilis2.dpi.inpe.br:7000/cgi-bin/proxy.cgi?url="
export FIPCERRADO_OPERACAO="http://fipcerrado.dpi.inpe.br:8080/fipcerrado-geoserver/terraamazon/wms"
export PROXY_OGC="http://terrabrasilis.dpi.inpe.br/proxy?url="; 
export DASHBOARD_API_HOST="http://terrabrasilis.dpi.inpe.br/dashboard/api/v1/redis-cli/"
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/"

Clone and install the dependencies

To clone this project, execute:

  1. https://gitlab.dpi.inpe.br/terrabrasilis/terrabrasilis.git
  2. git fetch --all
  3. git pull --all
  4. git checkout <branch> (e.g: devel_FM_001)
  5. cd webapp
  6. npm i

After all statements above was executed, the project will be prepare to run the steps bellow.

Development server

Run npm run start-webpack-dev for a dev server. Navigate to http://localhost:8080/.

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 npm run start-build-prod to build the project to production. The build artifacts will be stored in the dist/ directory.

Using dependency from link

Use the local packages from source code that you are develop via npm link.

Running unit tests

Running end-to-end tests (e2e)

Further help

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