This repo shows a Angular 5.0.0 + Node.js app that demos the IBM Cloud CDE service.
In order to deploy to IBM Cloud, you'll need an IBM Cloud account. There are then 2 options to deploy.
Automatically deploy the app using the following deploy to IBM Cloud button.
To run locally and deploy manually from the command line, follow the instructions below.
Getting started:
$ git clone
$ npm install
Before running locally, please make sure to:
- Create a new CDE instance and service credentials in IBM Cloud
- Ensure that vcap-local.json contains the CDE credentials
$ npm run build
Use the bx cli to deploy into IBM Cloud:
- Create a new Node.JS Cloud Foundry application in IBM Cloud (https://console.bluemix.net/)
- Update manifest.yml and environment / config values
- Build locally using
npm run build
ornpm run build-prod
- Navigate to the app folder
- Issue command to set
api endpoint: bx api <API-endpoint>
(US South https://api.ng.bluemix.net) - Issue command to login:
bx login
- Follow the prompts to enter IBM Cloud credentials, select account, and target Cloud Foundry org/space
- Issue command to push:
bx cf push
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the -prod
flag for a production build.
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.
This code pattern is licensed under the Apache Software License, Version 2. Separate third party code objects invoked within this code pattern are licensed by their respective providers pursuant to their own separate licenses. Contributions are subject to the Developer Certificate of Origin, Version 1.1 (DCO) and the Apache Software License, Version 2.