Coder Social home page Coder Social logo

mechevarria / globalconflictanalysisplatform Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 5.47 MB

Demo predictive analysis application that uses services provided by SAP HANA

JavaScript 74.57% HTML 21.30% CSS 1.75% Shell 2.16% Dockerfile 0.23%
hana predictive-analysis cloudplatform nodejs express

globalconflictanalysisplatform's Introduction

Global Conflict Analysis Platform

Data Visualization frontend that is deployable on both Heroku and SAP Cloud Platform

screenshot

Requirements

Deploy

  • Add the following environment variables to $HOME/.bashrc or $HOME/.profile. These are example values only.
# Required for application
export HDB_HOST=99.11.000.555
export HDB_PORT=10099
export HDB_USER=hanaUser
export HDB_PASSWORD=1hanaPassword
export MAPBOX_TOKEN=pk.veryLongValue

# For deployment on SAP Cloud Platform
export CP_USER=i999888
export CP_PASSWORD=MyPlatformPass

Local

  • Install dependencies and then run
npm install
npm run start

SAP Cloud Platform

  • Login with the cf-login.sh script
  • Push the application using the node.js buildpack with cf-push-buildpack.sh
  • You will be able to view the application route in the SAP Platform Cockpit or you can check the status with cf app conflict-analysis

Global Conflict Analysis Platform

Data Visualization frontend that is deployable locally, with docker or on SAP Cloud Platform. The supporting data is availabe at the gca-db repository

screenshot

Requirements

  • GCA-DB project deployed on SAP Cloud Platform as an available service.
  • node.js for local development
  • Cloud Foundry CLI for deployment on SAP Cloud Platform

Deploy

  • Add the following environment variables to $HOME/.bashrc or $HOME/.profile. These are example values only.
# For deployment on SAP Cloud Platform
export CP_USER=i999888
export CP_PASSWORD=MyPlatformPass

Local Development

  • Install dependencies and then run the script that will query the database service connection values and put in a temporary file
npm install
./local-run.sh

Docker Container

Requires a remote registry to deploy to an external PaaS such as SAP Cloud Platform. You can create a free repository and acount at quay.io

  • Build the container and push to a remote repository with
./docker-build.sh
  • Run the container with
./docker-run.sh

SAP Cloud Platform

  • Login with the cf-login.sh script to connect your local command line client with the platform.

SAP HANA Enterprise on Cloud Platform

  • Getting the connection information for the application by querying the deployed service with the following command
cf service-key gca-db gca-db-key
  • The properties to use are host, port, user, password

Deploy from source code

  • SAP Cloud Platform can assemble your container on the platform. Push the application using the node.js buildpack with
./cf-push-buildpack.sh

Deploy docker container

  • SAP Cloud Platform can pull an image from a remote registry and run as a container with
./cf-push-docker.sh
  • You will be able to view the application route in the SAP Platform Cockpit or you can check the status with
cf app gca-express

globalconflictanalysisplatform's People

Contributors

aa-julian avatar mechevarria avatar

Watchers

 avatar  avatar  avatar

globalconflictanalysisplatform's Issues

Clear Map on multiple queries

When searching for new years or other regions, the map should be cleaned up. Now, things keep piling up which hurts performance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.