IBM/cognos-dashboard-demo

Name: cognos-dashboard-demo

Owner: International Business Machines

Description: This is an Angular 5 and NodeJs demo application to demonstrate Cognos Dashboard Embedded, an IBM Cloud service that provides application developers with a way to add visualization and analytic capabilities to their application. Dev experience: https://ibm-cognos-dashboard-demo.ng.bluemix.net End-user experience: https://ibm-cognos-dashboard-demo.ng.bluemix.net/dashboard

Created: 2018-03-13 20:07:38.0

Updated: 2018-05-18 14:23:49.0

Pushed: 2018-05-23 13:19:48.0

Homepage: https://developer.ibm.com/code/patterns/build-a-dynamic-dashboard-application/

Size: 29084

Language: TypeScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Getting Started with CDE on IBM Cloud

This repo shows a Angular 5.0.0 + Node.js app that demos the IBM Cloud CDE service.

Architecture

Prerequisites
Deployment

In order to deploy to IBM Cloud, you'll need an IBM Cloud account. There are then 2 options to deploy.

Option 1:

Automatically deploy the app using the following deploy to IBM Cloud button.

Deploy to IBM Cloud

Option 2:

To run locally and deploy manually from the command line, follow the instructions below.

Repo setup

Getting started:

t clone
m install
Running

Before running locally, please make sure to:

  1. Create a new CDE instance and service credentials in IBM Cloud
  2. Ensure that vcap-local.json contains the CDE credentials
m run build
Manual Deployment Steps

Use the bx cli to deploy into IBM Cloud:

  1. Create a new Node.JS Cloud Foundry application in IBM Cloud (https://console.bluemix.net/)
  2. Update manifest.yml and environment / config values
  3. Build locally using `npm run buildor ``npm run build-prod```
  4. Navigate to the app folder
  5. Issue command to set `api endpoint: bx api <API-endpoint>` (US South https://api.ng.bluemix.net)
  6. Issue command to login: `bx login`
  7. Follow the prompts to enter IBM Cloud credentials, select account, and target Cloud Foundry org/space
  8. Issue command to push: `bx cf push`
Angular setup (front-end only)
Build

Run `ng buildto build the project. The build artifacts will be stored in thedist/directory. Use the-prod` flag for a production build.

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.

Resources

ibm


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.