Client appliation for SAP HANA services that taking advantage of the built-in REST, Search and Spatial engines. The backend project is located at github/mechevarria/cp_mta. This project was generated with Angular CLI. CoreUI is already integrated. The project is configured to run as a docker container. Data is provided by the Armed Conflict Location & Event Data project
- Build the multistage image with this script
docker-build.sh
-
In order for the following script to run, two environment variables to be set
HXE_HOST
andHXE_PORT
, which is the host and port of the HANA REST service api Example:HXE_HOST=192.168.56.101
andHXE_PORT=51006
-
Run the nginx continer with this script
docker-run.sh
- Install dependencies with
npm install
- In one terminal, start a dev build that watches source files and rebuilds automatically
npm run watch
-
In a separate terminal, create the development nginx container. This only needs to be done once for development.
- In order for the following script to run, two environment variables to be set
HXE_HOST
andHXE_PORT
, which is the host and port of the HANA REST service api Example:HXE_HOST=192.168.56.101
andHXE_PORT=51006
- In order for the following script to run, two environment variables to be set
docker-nginx.sh
- After the image is built, run the nginx container with
docker-dev.sh
The nginx server will be running on https://localhost
Whenever you make code changes the watch
task will automatically rebuild and the changes reflected on the running nginx web server.
- Run
ng generate component component-name
to generate a new component. You can also useng generate directive|pipe|service|class|guard|interface|enum|module
.
- Run
npm run build
to build the project. The build artifacts will be stored in thedist/
directory.
To learn more about SAP HANA development capabilities, go to developers.sap.com
To learn about the docker configuration go to the docker docs
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.
To get started with Angular, this is an excellent official tutorial
Mapbox component provided by ngx-mapbox-gl
Bootstrap components were created using ngx-bootstrap
Chart library by ng2-charts
Notifications done with angular-notifier