updated readme

This commit is contained in:
Tony Tam 2013-03-20 21:38:23 -07:00 committed by George Sibble
parent f2f33b98f7
commit 2443d3d91b
2 changed files with 6 additions and 5 deletions

View File

@ -50,13 +50,14 @@ $ find -type f
To run the server, cd to the `samples/server-generator/scalatra/output` folder and run: To run the server, cd to the `samples/server-generator/scalatra/output` folder and run:
``` ```
sbt run sbt
> container:start
``` ```
You can now load the swagger-ui against `http://localhost:8002/api/resources.json`. Of course this isn't a fully You can now load the swagger-ui against `http://localhost:8080/resources.json`. Of course this isn't a fully
runnable server! You have to add the logic in the apis/*.scala files. But that's the easy part. runnable server! You have to add the logic in the apis/*.scala files. But that's the easy part.
### Making it your own ### Making it your own
Running the sample is easy, but how about making your own server? Easy! Just modify the `samples/server-generator/scalatra/ScalatraServerGenerator.scala` file. Running the sample is easy, but how about making your own server? Easy! Just modify the `samples/server-generator/scalatra/ScalatraServerGenerator.scala` file.

View File

@ -3,13 +3,13 @@ import com.github.siasia.PluginKeys._
assemblySettings assemblySettings
organization := "org.eatbacon" organization := "com.wordnik"
seq(webSettings :_*) seq(webSettings :_*)
mainClass in assembly := Some("JettyMain") mainClass in assembly := Some("JettyMain")
name := "sfth" name := "scalatra-sample"
version := "0.1.0-SNAPSHOT" version := "0.1.0-SNAPSHOT"