forked from ymasory/scalatra-website-examples
-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
182 changed files
with
50,834 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
## generic files to ignore | ||
*~ | ||
*.lock | ||
*.DS_Store | ||
*.swp | ||
*.out | ||
|
||
# rails specific | ||
*.sqlite3 | ||
config/database.yml | ||
log/* | ||
tmp/* | ||
|
||
# java specific | ||
*.class | ||
|
||
# python specific | ||
*.pyc | ||
|
||
# xcode/iphone specific | ||
build/* | ||
*.pbxuser | ||
*.mode2v3 | ||
*.mode1v3 | ||
*.perspective | ||
*.perspectivev3 | ||
*~.nib | ||
|
||
# akka specific | ||
logs/* | ||
|
||
# sbt specific | ||
target/ | ||
project/boot | ||
lib_managed/* | ||
project/build/target | ||
project/build/lib_managed | ||
project/build/src_managed | ||
project/plugins/lib_managed | ||
project/plugins/target | ||
project/plugins/src_managed | ||
project/plugins/project | ||
|
||
core/lib_managed | ||
core/target | ||
pubsub/lib_managed | ||
pubsub/target | ||
|
||
# eclipse specific | ||
.metadata | ||
jrebel.lic | ||
.settings | ||
.classpath | ||
.project | ||
|
||
.ensime* | ||
*.sublime-* | ||
.cache | ||
|
||
# intellij | ||
*.eml | ||
*.iml | ||
*.ipr | ||
*.iws | ||
.*.sw? | ||
.idea | ||
|
||
# paulp script | ||
/.lib/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# pekko-examples # | ||
|
||
Corresponds to the guide at [http://scalatra.org/guides/3.0/async/pekko.html](http://scalatra.org/guides/3.0/async/pekko.html) | ||
|
||
## Build & Run ## | ||
|
||
```sh | ||
$ git clone https://github.com/scalatra/scalatra-website-examples.git | ||
$ cd scalatra-website-examples/3.0/async/pekko-examples | ||
$ chmod +x sbt | ||
$ ./sbt ~jetty:start | ||
``` | ||
|
||
First, open [http://localhost:8080/ask](http://localhost:8080/ask) in your browser. You'll see the "question and answer" in the browser. | ||
|
||
Second, Open [http://localhost:8080/](http://localhost:8080/) in your browser. You'll see the "question and answer" in your terminal. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
organization := "com.example" | ||
name := "Pekko Examples" | ||
version := "0.1.0-SNAPSHOT" | ||
scalaVersion := "3.3.1" | ||
|
||
val ScalatraVersion = "3.0.0" | ||
|
||
libraryDependencies ++= Seq( | ||
"org.apache.pekko" %% "pekko-actor" % "1.0.0" cross(CrossVersion.for3Use2_13), | ||
"org.apache.pekko" %% "pekko-http" % "1.0.0" cross(CrossVersion.for3Use2_13), | ||
"org.scalaj" %% "scalaj-http" % "2.4.2" cross(CrossVersion.for3Use2_13), | ||
"ch.qos.logback" % "logback-classic" % "1.4.11" % Provided, | ||
"org.scalatra" %% "scalatra-jakarta" % ScalatraVersion, | ||
"org.scalatra" %% "scalatra-specs2-jakarta" % ScalatraVersion % "test", | ||
"org.eclipse.jetty" % "jetty-webapp" % "11.0.15" % "provided", | ||
"jakarta.servlet" % "jakarta.servlet-api" % "5.0.0" % "provided" | ||
) | ||
|
||
enablePlugins(JettyPlugin) | ||
|
||
Jetty / containerLibs := Seq("org.eclipse.jetty" % "jetty-runner" % "11.0.15" intransitive()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
sbt.version=1.9.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "4.2.4") | ||
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature") |
Oops, something went wrong.