1.0.0 • Published 7 years ago

vcap-gen v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

VCAP-Gen

Secure Credential Generator

Install

$ npm install -g vcap-gen

Setup

Create a services definition file, named services.json.

{
	"service-name": [
		{
			"name": "instance-name",
			"type": "service-key | binding",
			"key": "service key name",
			"app": "application name"
		}
	]
}

You can include multiple services, and multiple instances per service.

The type parameter determines whether to retrieve an unbound service key or an application-bound service key. It's recommended to give third-parties an unbound service key where possible, so it can be deleted and regenerated when access needs to be revoked.

  • For type of "service-key", fill in the key parameter.
  • For type of "binding", fill in the app parameter.

Note: You should include this file in your repository, so new developers can quickly get started.

Execute

Run VCAP-Gen in the directory that you placed the services definition file.

$ vcap-gen

Follow the on-screen prompts for information to access your services. This will generate a credentials.json file to be used for local development.

{
	"service-name": [
		{
			"name": "instance-name",
			"label": "service-name",
			"credentials": {
				// Credentials...
			}
		}
	]
}

Note: You should not include this file in your repository, as it contains secure information to backend services.

1.0.0

7 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago