Skip to content

Commit

Permalink
Made the app work out of the box
Browse files Browse the repository at this point in the history
The code committed was setup for postgress/heroku. Reverted to use h2 database. Also updated the readme.

fixes #2
  • Loading branch information
dilipkrish committed Jul 11, 2017
1 parent 9593b53 commit cd3f440
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ build/
.classpath

out
*.iml
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
# springfox-grails-demo

This is minimalistic repo, which assumes prior knowledge of grails 3.x.

Sample application to demonstrate the capabilities of integrating with grails

Details on how to configure the grails app are available in the [library repository](https://github.com/springfox/springfox-grails-integration). You can see this demo running [live here](https://immense-escarpment-17128.herokuapp.com/swagger-ui.html).
Details on how to configure the grails app are available in the [library repository](https://github.com/springfox/springfox-grails-integration). You can see this demo running [live here](https://immense-escarpment-17128.herokuapp.com/swagger-ui.html).


To run the application

```bash
./grailsw run-app
```

the swagger-ui page should be available at `http://localhost:8080/swagger-ui.html`
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ dependencies {
compile("io.springfox:springfox-swagger-ui:${springfox}") { changing = true }
compile("io.springfox.grails:springfox-grails:${springfoxGrails}") { changing = true }

// compile "com.h2database:h2" //For local testing
compile 'org.postgresql:postgresql:9.4.1212'
compile "com.h2database:h2" //For local testing
// compile 'org.postgresql:postgresql:9.4.1212' //for heroku
compile 'com.github.jsimone:webapp-runner:8.5.11.3'

testCompile "org.grails:grails-plugin-testing"
Expand Down

0 comments on commit cd3f440

Please sign in to comment.