Skip to content

GIScience/ohsome-dashboard

Repository files navigation

ohsome dashboard

Build Status Sonarcloud Status status: active LICENSE Website

Try out the online version here: https://dashboard.ohsome.org/

This project was generated with Angular CLI version 15.2.0.

Setup

Use node v18+

The following steps describe possible setups using npm.

Simple Setup

If you only want to change things in the dashboard code:

export DASHBOARD_FOLDER=$(pwd)/ohsome-dashboard # modify to your desired dashboard source folder
git clone ssh://git@github.com:GIScience/ohsome-dashboard.git $DASHBOARD_FOLDER

# eventually switch to a development branch
npm install

npm start

Advanced Setup

If you need to make changes in dashboard code and ohsome-js-utils at the same time:

export DASHBOARD_FOLDER=$(pwd)/ohsome-dashboard # modify to your desired dashboard source folder
export OHSOME_UTILS_FOLDER=$(pwd)/ohsome-js-utils # modify to your desired ohsome-js-utils source folder
git clone ssh://git@github.com:GIScience/ohsome-dashboard.git $DASHBOARD_FOLDER
git clone ssh://git@github.com:GIScience/ohsome-js-utils.git $OHSOME_UTILS_FOLDER

cd $OHSOME_UTILS_FOLDER/dist
npm link
cd $DASHBOARD_FOLDER

# eventually switch to a development branch
npm install
npm link "@giscience/ohsome-js-utils"

npm start

Development server

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 --env=prod flag for a production build.

Linting

We are using eslint. To configure rules change .eslintrc.json.

Run ng lint to find out about code style problems.

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 a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities. Run ng e2e to choose an e2e platform that angular will install for you.

Further help

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