Demo Web Application for Financial Advisor to review list of clients, news, and stocks from a single interface
Built with Node.js + React.js and connects to Db2 system using IBM Common SQL Engine
-
Install packages
npm install
-
Set Environment Variables
Copy
.env.example
to new file.env
and fill in variables with your DB connection credentials:DB_HOST= DB_PORT= DB_BASE= DB_USER= DB_PASS=
-
Run Backend
npm start &
-
Run Frontend (separate process)
cd client npm start
docker build -t findash https://github.com/IBM-DSE/FinDash
docker run -it -v `pwd`:/usr/src/app -w /usr/src/app node:8 npm install
NOTE: subsequent npm commands using the generated node_modules
should also be run the same way to avoid dependency mismatch
docker build -t findash .
docker run -it --env-file .env -p 3000:3000 findash
-
Install Bluemix CLI
-
Push app to IBM Cloud
cf push
-
Set environment variables either:
- with
cf set-env
commands:cf set-env FinDash DB_HOST <YOUR_DB_HOST> cf set-env FinDash DB_PORT ...
- through IBM Cloud console
- with