https://github.com/icha024/bluemix-config-parser
No more messy Bluemix JSON configs!
https://github.com/icha024/bluemix-config-parser
Last synced: 6 months ago
JSON representation
No more messy Bluemix JSON configs!
- Host: GitHub
- URL: https://github.com/icha024/bluemix-config-parser
- Owner: icha024
- License: apache-2.0
- Created: 2016-01-15T09:26:01.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-10T00:05:17.000Z (over 10 years ago)
- Last Synced: 2025-07-24T22:38:25.136Z (11 months ago)
- Language: Java
- Homepage:
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bluemix Config Parser
[](https://travis-ci.org/icha024/bluemix-config-parser)
##No more messy JSON config parsing!
When using Bluemix (CloudFoundry), services configuration are read by parsing the JSON from VCAP_SERVICES environment variable. This is a handy util library for parsing Bluemix VCAP_SERVICES configurations JSON. Common configs classess are provided so it'll even work with auto-completion on your favorite IDE.
## Usage example
```
String password = BluemixConfigStore.getConfig().getCloudantNoSQLDB().getCredentials().getPassword();
```
## Installing with Maven
```
com.clianz
bluemix-config-parser
0.0.5
```
## Configurations supported
Most of the common services on Bluemix are currently supported:
- Business rules
- Clear DB
- Cloud AMQP (RabbitMQ)
- Cloudant
- Concept Expansion
- Concept Insight
- Dash DB
- Data Cache
- Document Conversion
- Geospartial Analytics
- IMF Push
- Monitoring and Analytics
- MQ Light
- Relationship Extraction
- Rank and Retrieve
- Sesson Cache
- SQL DB (DB2)
- Trade-off Analytics
- Twitter Insights
- Weather Insights
- Workflow
- Workload Scheduler
- Twilio
- Elastic Search by Compose
- Mongo DB by Compose
- PostgreSQL by Compose
- Redis by Compose
Add more bindings to other services if you need, let's do this once and for all for everyone.
## Local development deployment
For local development, there are two common ways to setup environment:
* Set VCAP_SERVICES JSON config for your dev space as an environment variable.
* Or, start your app with a JVM variable pointing to a file containing your dev config, eg.
```
-DVCAP_SERVICES_FILENAME=myDevConfig.json
```
## Contributing
Pull requests are welcome.
Project page: [https://github.com/icha024/bluemix-config-parser/](https://github.com/icha024/bluemix-config-parser/)
Just fork this project, follow the pattern to add bindings/tests, then raise a pull request.