Skip to content
This repository was archived by the owner on Dec 12, 2018. It is now read-only.

Commit 0b26b5a

Browse files
authored
Merge pull request #1080 from stormpath/add-heroku-buttons
Add a Heroku 'Deploy' button to the README.md in the Spring-Boot section
2 parents a46ec1c + 487a951 commit 0b26b5a

File tree

16 files changed

+190
-3
lines changed

16 files changed

+190
-3
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ We also have a [Java WebApp Quickstart](https://docs.stormpath.com/java/servlet-
6767

6868
If you're building a Spring Boot application, the [Spring Boot Webapp Quickstart](https://docs.stormpath.com/java/spring-boot-web/quickstart.html) will get you up and running quickly.
6969

70+
Deploy our Spring Boot Example to Heroku
71+
72+
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/stormpath/heroku-spring-boot-runner&env\[GROUP_ID\]=com.stormpath.spring&env\[ARTIFACT_ID\]=stormpath-sdk-examples-spring-boot-default)
73+
7074
## Build Instructions
7175

7276
This project requires Maven 3.2.1 and JDK 7 to build. Run the following:

examples/README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,28 @@ mvn clean package
1515
java -jar target/*.jar
1616
```
1717

18-
For more information, refer to the links found on the [homepage](https://github.com/stormpath/stormpath-sdk-java) of the Java SDK Project.
18+
For more information, refer to the links found on the [homepage](https://github.com/stormpath/stormpath-sdk-java) of the Java SDK Project.
19+
20+
21+
Examples:
22+
23+
| Name | Description | Deploy |
24+
| ---- | ----------- | ------ |
25+
| [quickstart](./quickstart) | Standalone CLI Example| N/A |
26+
| [servlet](./servlet) | Basic Servlet Example | [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/stormpath/heroku-war-runner&env\[GROUP_ID\]=com.stormpath.sdk&env\[ARTIFACT_ID\]=stormpath-sdk-examples-servlet) |
27+
| [spring](./spring) | Standalone Spring CLI Example | N/A |
28+
| [spring-boot](./spring-boot) | Standalone Spring Boot CLI Example | N/A |
29+
| [spring-boot-default](./spring-boot-default) | Basic Spring Boot Webapp Example | [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/stormpath/heroku-spring-boot-runner&env\[GROUP_ID\]=com.stormpath.spring&env\[ARTIFACT_ID\]=stormpath-sdk-examples-spring-boot-default) |
30+
| [spring-boot-webmvc](./spring-boot-webmvc) | Spring Boot Web MVC Example | [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/stormpath/heroku-spring-boot-runner&env\[GROUP_ID\]=com.stormpath.spring&env\[ARTIFACT_ID\]=stormpath-sdk-examples-spring-boot-web) |
31+
| [spring-boot-webmvc-angular](./spring-boot-webmvc-angular) | Spring Boot Web MVC AngularJS Example | [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/stormpath/heroku-spring-boot-runner&env\[GROUP_ID\]=com.stormpath.spring&env\[ARTIFACT_ID\]=stormpath-sdk-examples-spring-boot-web-angular) |
32+
| [spring-security-spring-boot-webmvc](./spring-security-spring-boot-webmvc) | Spring Security + Spring Boot Web MVC Example | [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/stormpath/heroku-spring-boot-runner&env\[GROUP_ID\]=com.stormpath.spring&env\[ARTIFACT_ID\]=stormpath-sdk-examples-spring-security-spring-boot-webmvc) |
33+
| [spring-security-spring-boot-webmvc-bare-bones](./spring-security-spring-boot-webmvc-bare-bones) | Basic Spring Security Web MVC Example | [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/stormpath/heroku-spring-boot-runner&env\[GROUP_ID\]=com.stormpath.spring&env\[ARTIFACT_ID\]=stormpath-sdk-examples-spring-security-spring-boot-webmvc-bare-bones) |
34+
| [spring-security-webmvc](./spring-security-webmvc) | Spring Security Web MVC Example | [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/stormpath/heroku-war-runner&env\[GROUP_ID\]=com.stormpath.spring&env\[ARTIFACT_ID\]=stormpath-sdk-examples-spring-security-webmvc) |
35+
| [spring-webmvc](./spring-webmvc) | Spring Web MVC Example | [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/stormpath/heroku-war-runner&env\[GROUP_ID\]=com.stormpath.spring&env\[ARTIFACT_ID\]=stormpath-sdk-examples-spring-webmvc) |
36+
| [zuul-spring-cloud-starter](./zuul-spring-cloud-starter) | Zuul Spring Cloud Example | N/A |
37+
38+
39+
40+
41+
42+

examples/quickstart/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Basic CLI Example
2+
=================
3+
4+
Run this example locally with the following Maven command:
5+
6+
``` bash
7+
$ mvn exec:java
8+
```

examples/quickstart/pom.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,22 @@
9292
</execution>
9393
</executions>
9494
</plugin>
95+
<plugin>
96+
<groupId>org.codehaus.mojo</groupId>
97+
<artifactId>exec-maven-plugin</artifactId>
98+
<version>1.3.2</version>
99+
<executions>
100+
<execution>
101+
<goals>
102+
<goal>java</goal>
103+
</goals>
104+
</execution>
105+
</executions>
106+
<configuration>
107+
<killAfter>-1</killAfter>
108+
<mainClass>quickstart.Quickstart</mainClass>
109+
</configuration>
110+
</plugin>
95111
<plugin>
96112
<groupId>org.apache.maven.plugins</groupId>
97113
<artifactId>maven-deploy-plugin</artifactId>

examples/servlet/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Servlet Example
2+
===============
3+
4+
Run this example locally with the following Maven command:
5+
6+
``` bash
7+
$ mvn tomcat7:run
8+
```
9+
10+
Then visit: http://localhost:8080
11+
12+
Or simply deploy it Heroku with a click of a button!
13+
14+
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/stormpath/heroku-war-runner&env\[GROUP_ID\]=com.stormpath.sdk&env\[ARTIFACT_ID\]=stormpath-sdk-examples-servlet)

examples/servlet/src/main/webapp/WEB-INF/jsp/welcome.jsp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828
<br/>
2929
<br/>
3030
Welcome to this <i>gloriously simple</i>
31-
<a href="https://github.com/stormpath/stormpath-sdk-java/extensions/servlet">Stormpath Web</a> sample
31+
<a href="https://github.com/stormpath/stormpath-sdk-java/tree/master/extensions/servlet">Stormpath Web</a> sample
3232
application!
3333
<ul>
3434
<li>First, take a look through this very basic site.</li>
3535
<li>Then, check out this project's source code <a
36-
href="https://github.com/stormpath/stormpath-sdk-java/examples/servlet">on GitHub</a>.
36+
href="https://github.com/stormpath/stormpath-sdk-java/tree/master/examples/servlet">on GitHub</a>.
3737
</li>
3838
<li>Lastly, integrate Stormpath into your own sites!</li>
3939
</ul>

examples/servlet/src/main/webapp/WEB-INF/web.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@
4141
<max-age>3600</max-age>
4242
</cookie-config>
4343
</session-config>
44+
45+
<!-- Enable servlets as welcome files, only needed for jetty, Tomcat works out of the box -->
46+
<context-param>
47+
<param-name>org.eclipse.jetty.servlet.Default.welcomeServlets</param-name>
48+
<param-value>true</param-value>
49+
</context-param>
50+
4451
<welcome-file-list>
4552
<welcome-file>welcome</welcome-file>
4653
</welcome-file-list>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Spring Boot Web Example
2+
=======================
3+
4+
Run this example locally with the following Maven command:
5+
6+
``` bash
7+
$ mvn spring-boot:run
8+
```
9+
10+
Then visit: http://localhost:8080
11+
12+
Or simply deploy it Heroku with a click of a button!
13+
14+
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/stormpath/heroku-spring-boot-runner&env\[GROUP_ID\]=com.stormpath.spring&env\[ARTIFACT_ID\]=stormpath-sdk-examples-spring-boot-default)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Spring Boot AngularJS Example
2+
=============================
3+
4+
Run this example locally with the following Maven command:
5+
6+
``` bash
7+
$ mvn spring-boot:run
8+
```
9+
10+
Then visit: http://localhost:8080
11+
12+
Or simply deploy it Heroku with a click of a button!
13+
14+
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/stormpath/heroku-spring-boot-runner&env\[GROUP_ID\]=com.stormpath.spring&env\[ARTIFACT_ID\]=stormpath-sdk-examples-spring-boot-web-angular)

examples/spring-boot-webmvc/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Spring Boot Web MVC Example
2+
===========================
3+
4+
Run this example locally with the following Maven command:
5+
6+
``` bash
7+
$ mvn spring-boot:run
8+
```
9+
10+
Then visit: http://localhost:8080
11+
12+
Or simply deploy it Heroku with a click of a button!
13+
14+
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/stormpath/heroku-spring-boot-runner&env\[GROUP_ID\]=com.stormpath.spring&env\[ARTIFACT_ID\]=stormpath-sdk-examples-spring-boot-web)

examples/spring-boot/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Stand Alone Spring Boot CLI Example
2+
===================================
3+
4+
Run this example locally with the following Maven command:
5+
6+
``` bash
7+
$ mvn spring-boot:run
8+
```
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Spring Security & Spring Boot Bare Bones Example
2+
================================================
3+
4+
Run this example locally with the following Maven command:
5+
6+
``` bash
7+
$ mvn spring-boot:run
8+
```
9+
10+
Then visit: http://localhost:8080
11+
12+
Or simply deploy it Heroku with a click of a button!
13+
14+
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/stormpath/heroku-spring-boot-runner&env\[GROUP_ID\]=com.stormpath.spring&env\[ARTIFACT_ID\]=stormpath-sdk-examples-spring-security-spring-boot-webmvc-bare-bones)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Spring Security & Spring Boot Example
2+
=====================================
3+
4+
Run this example locally with the following Maven command:
5+
6+
``` bash
7+
$ mvn spring-boot:run
8+
```
9+
10+
Then visit: http://localhost:8080
11+
12+
Or simply deploy it Heroku with a click of a button!
13+
14+
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/stormpath/heroku-spring-boot-runner&env\[GROUP_ID\]=com.stormpath.spring&env\[ARTIFACT_ID\]=stormpath-sdk-examples-spring-security-spring-boot-webmvc)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Spring Security Web MVC Example
2+
===============================
3+
4+
Run this example locally with the following Maven command:
5+
6+
``` bash
7+
$ mvn tomcat7:run
8+
```
9+
10+
Then visit: http://localhost:8080
11+
12+
Or simply deploy it Heroku with a click of a button!
13+
14+
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/stormpath/heroku-war-runner&env\[GROUP_ID\]=com.stormpath.spring&env\[ARTIFACT_ID\]=stormpath-sdk-examples-spring-security-webmvc)

examples/spring-webmvc/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Spring Boot Web MVC Example
2+
===========================
3+
4+
Run this example locally with the following Maven command:
5+
6+
``` bash
7+
$ mvn tomcat7:run
8+
```
9+
10+
Then visit: http://localhost:8080
11+
12+
Or simply deploy it Heroku with a click of a button!
13+
14+
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/stormpath/heroku-war-runner&env\[GROUP_ID\]=com.stormpath.spring&env\[ARTIFACT_ID\]=stormpath-sdk-examples-spring-webmvc)

examples/spring/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Stand Alone Spring CLI Example
2+
==============================
3+
4+
Run this example locally with the following Maven command:
5+
6+
``` bash
7+
$ mvn exec:java
8+
```

0 commit comments

Comments
 (0)