Skip to content

HotMaps/Hotmaps-toolbox-client

Repository files navigation

HotmapsToolboxClient

Build Status

This project was generated with Angular CLI version 1.1.1.

Development server

Download the git repository

First, you need to clone the repository on your machine

git clone https://github.com/HotMaps/Hotmaps-toolbox-client.git

Install all the necessary packages

Go inside your folder and run the following command:

npm install

If any, solve all your installation problems before going any further

Edit .env configuration to match your needs (if running using Docker/docker-compose) or directly in /src/assets/env.js (if you are not using system environment variables):

  • api url
  • geoserver url
  • wiki url

[In case you need to make further configuration, refer to the constants declared in src/app/shared/data.service.ts.]

Run the server

ng serve --poll 1000

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|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. Before running the tests make sure you are serving the app via ng serve.

Further help

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

Add Documentation

  1. Run npm install --save-dev @compodoc/compodoc@1.0.3 to install the version 1.0.3 of Compodoc.
  2. Define a script task for it in your package.json : "scripts": { "compodoc": "./node_modules/.bin/compodoc -p tsconfig.json" }
  3. Run npm run compodoc to generate the documentation files.
  4. Run ./node_modules/.bin/compodoc -s to serve the generated documentation (default http://localhost:8080/)