Skip to content

Commit

Permalink
Add Deploy to Heroku button
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondberg committed May 4, 2016
1 parent 3feac2b commit 0ce31ee
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ An example Braintree integration for Spring (Java).

This starts the server on port `8080` listening to all interfaces.

## Deploying to Heroku

You can deploy this app directly to Heroku to see the app live. Skip the setup instructions above and click the button below. This will walk you through getting this app up and running on Heroku in minutes.

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/braintree/braintree_spring_example&env[BT_ENVIRONMENT]=sandbox)

## Running tests

All tests are integration tests. Integration tests make API calls to Braintree and require that you set up your Braintree credentials. You can run this project's integration tests by adding your sandbox API credentials to `config.properties` and running `./gradlew test`.
Expand Down
28 changes: 28 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "Braintree Spring Example",
"description": "An example Braintree integration for Spring (Java)",
"keywords": ["braintree", "java", "spring"],
"website": "https://www.braintreepayments.com",
"repository": "https://github.com/braintree/braintree_spring_example",
"logo": "https://avatars1.githubusercontent.com/u/3453",
"success_url": "/",
"env": {
"BT_ENVIRONMENT": {
"description": "Run against Braintree sandbox environment",
"required": true,
"value": "sandbox"
},
"BT_MERCHANT_ID": {
"description": "Your Braintree Merchant ID",
"required": true
},
"BT_PUBLIC_KEY": {
"description": "Your Braintree Public Key",
"required": true
},
"BT_PRIVATE_KEY": {
"description": "Your Braintree Private Key",
"required": true
}
}
}

0 comments on commit 0ce31ee

Please sign in to comment.