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

Commit

Permalink
Add Heroku deploy buttons to web examples
Browse files Browse the repository at this point in the history
Add README's for each example
  • Loading branch information
bdemers committed Oct 28, 2016
1 parent 8c6fd0b commit dc7ac51
Show file tree
Hide file tree
Showing 14 changed files with 179 additions and 3 deletions.
26 changes: 25 additions & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,28 @@ mvn clean package
java -jar target/*.jar
```

For more information, refer to the links found on the [homepage](https://github.com/stormpath/stormpath-sdk-java) of the Java SDK Project.
For more information, refer to the links found on the [homepage](https://github.com/stormpath/stormpath-sdk-java) of the Java SDK Project.


Examples:

| Name | Description | Deploy |
| ---- | ----------- | ------ |
| [quickstart](./quickstart) | Standalone CLI Example| N/A |
| [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) |
| [spring](./spring) | Standalone Spring CLI Example | N/A |
| [spring-boot](./spring-boot) | Standalone Spring Boot CLI Example | N/A |
| [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) |
| [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) |
| [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) |
| [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) |
| [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) |
| [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) |
| [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) |
| [zuul-spring-cloud-starter](./zuul-spring-cloud-starter) | Zuul Spring Cloud Example | N/A |






8 changes: 8 additions & 0 deletions examples/quickstart/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Basic CLI Example
=================

Run this example locally with the following Maven command:

``` bash
$ mvn exec:java
```
16 changes: 16 additions & 0 deletions examples/quickstart/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,22 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.3.2</version>
<executions>
<execution>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<killAfter>-1</killAfter>
<mainClass>quickstart.Quickstart</mainClass>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
Expand Down
14 changes: 14 additions & 0 deletions examples/servlet/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Servlet Example
===============

Run this example locally with the following Maven command:

``` bash
$ mvn tomcat7:run
```

Then visit: http://localhost:8080

Or simply deploy it Heroku with a click of a button!

[![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)
4 changes: 2 additions & 2 deletions examples/servlet/src/main/webapp/WEB-INF/jsp/welcome.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@
<br/>
<br/>
Welcome to this <i>gloriously simple</i>
<a href="https://github.com/stormpath/stormpath-sdk-java/extensions/servlet">Stormpath Web</a> sample
<a href="https://github.com/stormpath/stormpath-sdk-java/tree/master/extensions/servlet">Stormpath Web</a> sample
application!
<ul>
<li>First, take a look through this very basic site.</li>
<li>Then, check out this project's source code <a
href="https://github.com/stormpath/stormpath-sdk-java/examples/servlet">on GitHub</a>.
href="https://github.com/stormpath/stormpath-sdk-java/tree/master/examples/servlet">on GitHub</a>.
</li>
<li>Lastly, integrate Stormpath into your own sites!</li>
</ul>
Expand Down
14 changes: 14 additions & 0 deletions examples/spring-boot-default/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Spring Boot Web Example
=======================

Run this example locally with the following Maven command:

``` bash
$ mvn spring-boot:run
```

Then visit: http://localhost:8080

Or simply deploy it Heroku with a click of a button!

[![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)
14 changes: 14 additions & 0 deletions examples/spring-boot-webmvc-angular/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Spring Boot AngularJS Example
=============================

Run this example locally with the following Maven command:

``` bash
$ mvn spring-boot:run
```

Then visit: http://localhost:8080

Or simply deploy it Heroku with a click of a button!

[![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)
14 changes: 14 additions & 0 deletions examples/spring-boot-webmvc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Spring Boot Web MVC Example
===========================

Run this example locally with the following Maven command:

``` bash
$ mvn spring-boot:run
```

Then visit: http://localhost:8080

Or simply deploy it Heroku with a click of a button!

[![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)
8 changes: 8 additions & 0 deletions examples/spring-boot/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Stand Alone Spring Boot CLI Example
===================================

Run this example locally with the following Maven command:

``` bash
$ mvn spring-boot:run
```
14 changes: 14 additions & 0 deletions examples/spring-security-spring-boot-webmvc-bare-bones/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Spring Security & Spring Boot Bare Bones Example
================================================

Run this example locally with the following Maven command:

``` bash
$ mvn spring-boot:run
```

Then visit: http://localhost:8080

Or simply deploy it Heroku with a click of a button!

[![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)
14 changes: 14 additions & 0 deletions examples/spring-security-spring-boot-webmvc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Spring Security & Spring Boot Example
=====================================

Run this example locally with the following Maven command:

``` bash
$ mvn spring-boot:run
```

Then visit: http://localhost:8080

Or simply deploy it Heroku with a click of a button!

[![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)
14 changes: 14 additions & 0 deletions examples/spring-security-webmvc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Spring Security Web MVC Example
===============================

Run this example locally with the following Maven command:

``` bash
$ mvn tomcat7:run
```

Then visit: http://localhost:8080

Or simply deploy it Heroku with a click of a button!

[![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)
14 changes: 14 additions & 0 deletions examples/spring-webmvc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Spring Boot Web MVC Example
===========================

Run this example locally with the following Maven command:

``` bash
$ mvn tomcat7:run
```

Then visit: http://localhost:8080

Or simply deploy it Heroku with a click of a button!

[![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)
8 changes: 8 additions & 0 deletions examples/spring/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Stand Alone Spring CLI Example
==============================

Run this example locally with the following Maven command:

``` bash
$ mvn exec:java
```

0 comments on commit dc7ac51

Please sign in to comment.