22 |
We're sorry, but something went wrong.
23 |
We've been notified about this issue and we'll take a look at it shortly.
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/public/app.css:
--------------------------------------------------------------------------------
1 | a {
2 | color: #3B5998;
3 | text-decoration: none;
4 | }
5 |
--------------------------------------------------------------------------------
/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xitrum-framework/xitrum-new/720aec0640f8f9ce21f7e8eab784737ceff9971c/public/favicon.ico
--------------------------------------------------------------------------------
/public/robots.txt:
--------------------------------------------------------------------------------
1 | # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
2 | #
3 | # To ban all spiders from the entire site uncomment the next two lines:
4 | # User-Agent: *
5 | # Disallow: /
6 |
--------------------------------------------------------------------------------
/public/whale.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xitrum-framework/xitrum-new/720aec0640f8f9ce21f7e8eab784737ceff9971c/public/whale.png
--------------------------------------------------------------------------------
/sbt/sbt:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | java -Xms256m -Xmx512m -Xss1m -XX:MaxMetaspaceSize=384m -XX:+CMSClassUnloadingEnabled -jar `dirname $0`/sbt-launch-1.7.3.jar "$@"
3 |
--------------------------------------------------------------------------------
/sbt/sbt-launch-1.7.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xitrum-framework/xitrum-new/720aec0640f8f9ce21f7e8eab784737ceff9971c/sbt/sbt-launch-1.7.3.jar
--------------------------------------------------------------------------------
/sbt/sbt.bat:
--------------------------------------------------------------------------------
1 | @echo off
2 |
3 | set SCRIPT_DIR=%~dp0
4 |
5 | java -Xms256m -Xmx512m -Xss1m -XX:MaxMetaspaceSize=384m -XX:+CMSClassUnloadingEnabled -jar "%SCRIPT_DIR%sbt-launch-1.7.3.jar" %*
6 |
--------------------------------------------------------------------------------
/screenshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xitrum-framework/xitrum-new/720aec0640f8f9ce21f7e8eab784737ceff9971c/screenshot.png
--------------------------------------------------------------------------------
/script/runner:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # You may need to customize memory config below to optimize for your environment.
4 | # To display time when the application is stopped for GC:
5 | # -XX:+PrintGCTimeStamps -XX:+PrintGCApplicationStoppedTime
6 | JAVA_OPTS="-Xmx512m -Xms256m -XX:MaxMetaspaceSize=384m -XX:+HeapDumpOnOutOfMemoryError -XX:+AggressiveOpts -XX:+OptimizeStringConcat -XX:+UseFastAccessorMethods -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+CMSClassUnloadingEnabled -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=1 -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -Djava.awt.headless=true -server -Dxitrum.mode=production"
7 |
8 | # Quote because path may contain spaces
9 | if [ -h $0 ]
10 | then
11 | ROOT_DIR="$(cd "$(dirname "$(readlink -n "$0")")/.." && pwd)"
12 | else
13 | ROOT_DIR="$(cd "$(dirname $0)/.." && pwd)"
14 | fi
15 | cd "$ROOT_DIR"
16 |
17 | # Include ROOT_DIR to do "ps aux | grep java" to find this pid easier when
18 | # starting multiple processes from different directories
19 | CLASS_PATH="$ROOT_DIR/lib/*:config"
20 |
21 | # Use exec to be compatible with daemontools:
22 | # http://cr.yp.to/daemontools.html
23 | exec java $JAVA_OPTS -cp "$CLASS_PATH" "$@"
24 |
--------------------------------------------------------------------------------
/script/runner.bat:
--------------------------------------------------------------------------------
1 | @echo off
2 |
3 | rem You may need to customize memory config below to optimize for your environment.
4 | rem To display time when the application is stopped for GC:
5 | rem -XX:+PrintGCTimeStamps -XX:+PrintGCApplicationStoppedTime
6 | set JAVA_OPTS=-Xmx512m -Xms256m -XX:MaxMetaspaceSize=384m -XX:+HeapDumpOnOutOfMemoryError -XX:+AggressiveOpts -XX:+OptimizeStringConcat -XX:+UseFastAccessorMethods -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+CMSClassUnloadingEnabled -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=1 -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -Djava.awt.headless=true -server -Dxitrum.mode=production
7 |
8 | set ROOT_DIR=%~dp0..
9 | cd "%$ROOT_DIR%"
10 |
11 | rem Include ROOT_DIR to find this pid easier later, when
12 | rem starting multiple processes from different directories
13 | set CLASS_PATH="%ROOT_DIR%\lib\*;config"
14 |
15 | java %JAVA_OPTS% -cp %CLASS_PATH% %*
16 |
--------------------------------------------------------------------------------
/script/scalive:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | JAVA_OPTS='-Djava.awt.headless=true'
4 |
5 | # Quote because path may contain spaces
6 | if [ -h $0 ]
7 | then
8 | ROOT_DIR="$(cd "$(dirname "$(readlink -n "$0")")/.." && pwd)"
9 | else
10 | ROOT_DIR="$(cd "$(dirname $0)/.." && pwd)"
11 | fi
12 | cd "$ROOT_DIR"
13 |
14 | CLASS_PATH="$ROOT_DIR/script/*:$ROOT_DIR/lib/*"
15 |
16 | java $JAVA_OPTS -cp $CLASS_PATH scalive.client.AgentLoader "$ROOT_DIR/script:$ROOT_DIR/lib" $@
17 |
--------------------------------------------------------------------------------
/script/scalive-1.7.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xitrum-framework/xitrum-new/720aec0640f8f9ce21f7e8eab784737ceff9971c/script/scalive-1.7.0.jar
--------------------------------------------------------------------------------
/script/scalive.bat:
--------------------------------------------------------------------------------
1 | set JAVA_OPTS=-Djava.awt.headless=true
2 |
3 | set ROOT_DIR=%~dp0..
4 | cd "%$ROOT_DIR%"
5 |
6 | set CLASS_PATH="%ROOT_DIR%\script\*;%ROOT_DIR%\lib\*"
7 |
8 | java %JAVA_OPTS% -cp %CLASS_PATH% scalive.client.AgentLoader "%$ROOT_DIR%\script;%$ROOT_DIR%\lib" %*
9 |
--------------------------------------------------------------------------------
/src/main/scala/quickstart/Boot.scala:
--------------------------------------------------------------------------------
1 | package quickstart
2 |
3 | import xitrum.Server
4 |
5 | object Boot {
6 | def main(args: Array[String]): Unit = {
7 | Server.start()
8 | Server.stopAtShutdown()
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/src/main/scala/quickstart/action/DefaultLayout.scala:
--------------------------------------------------------------------------------
1 | package quickstart.action
2 |
3 | import xitrum.Action
4 |
5 | trait DefaultLayout extends Action {
6 | override def layout: String = renderViewNoLayout[DefaultLayout]()
7 | }
8 |
--------------------------------------------------------------------------------
/src/main/scala/quickstart/action/Errors.scala:
--------------------------------------------------------------------------------
1 | package quickstart.action
2 |
3 | import xitrum.annotation.{Error404, Error500}
4 |
5 | @Error404
6 | class NotFoundError extends DefaultLayout {
7 | def execute(): Unit = {
8 | respondView()
9 | }
10 | }
11 |
12 | @Error500
13 | class ServerError extends DefaultLayout {
14 | def execute(): Unit = {
15 | respondView()
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/src/main/scala/quickstart/action/SiteIndex.scala:
--------------------------------------------------------------------------------
1 | package quickstart.action
2 |
3 | import xitrum.annotation.GET
4 |
5 | @GET("")
6 | class SiteIndex extends DefaultLayout {
7 | def execute(): Unit = {
8 | respondView()
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/src/main/scalate/quickstart/action/DefaultLayout.jade:
--------------------------------------------------------------------------------
1 | - import quickstart.action._
2 |
3 | !!! 5
4 | html
5 | head
6 | != antiCsrfMeta
7 | != xitrumCss
8 |
9 | meta(content="text/html; charset=utf-8" http-equiv="content-type")
10 | title My new Xitrum project
11 |
12 | link(rel="shortcut icon" href={publicUrl("favicon.ico")})
13 |
14 | link(type="text/css" rel="stylesheet" media="all" href={webJarsUrl("bootstrap-css/3.3.6/css", "bootstrap.css", "bootstrap.min.css")})
15 | link(type="text/css" rel="stylesheet" media="all" href={publicUrl("app.css")})
16 |
17 | body
18 | .container
19 | h1
20 | a(href={url[SiteIndex]}) My new Xitrum project
21 |
22 | #flash
23 | !~ jsRenderFlash()
24 | != renderedView
25 |
26 | != jsDefaults
27 | != jsForView
28 |
--------------------------------------------------------------------------------
/src/main/scalate/quickstart/action/NotFoundError.jade:
--------------------------------------------------------------------------------
1 | p This is custom 404 page
2 |
--------------------------------------------------------------------------------
/src/main/scalate/quickstart/action/ServerError.jade:
--------------------------------------------------------------------------------
1 | p This is custom 500 page
2 |
--------------------------------------------------------------------------------
/src/main/scalate/quickstart/action/SiteIndex.jade:
--------------------------------------------------------------------------------
1 | p
2 | img(src={publicUrl("whale.png")})
3 |
4 | p
5 | | This is a skeleton for a new
6 | a(href="http://xitrum-framework.github.io/") Xitrum
7 | | project.
8 |
9 | p If you're new to Xitrum, you should visit:
10 |
11 | ul
12 | li
13 | a(href="http://xitrum-framework.github.io/") Xitrum Homepage
14 | li
15 | a(href="http://xitrum-framework.github.io/guide.html") Xitrum Guide
16 |
17 | p
18 | | This is a skeleton project, you should modify it to suit your needs.
19 | | Some important parts of the skeleton:
20 |
21 | ul
22 | li
23 | | The program's entry point (
24 | code main
25 | | function) is in
26 | a(href="https://github.com/xitrum-framework/xitrum-new/tree/master/src/main/scala/quickstart/Boot.scala") src/main/scala/quickstart/Boot.scala
27 | li
28 | | Controller actions are in
29 | a(href="https://github.com/xitrum-framework/xitrum-new/tree/master/src/main/scala/quickstart/action") src/main/scala/quickstart/action
30 | | directory.
31 | li
32 | | View templates are in
33 | a(href="https://github.com/xitrum-framework/xitrum-new/tree/master/src/main/scalate/quickstart/action") src/main/scalate/quickstart/action
34 | | directory.
35 | li
36 | | Configurations are in
37 | a(href="https://github.com/xitrum-framework/xitrum-new/tree/master/config") config
38 | | directory.
39 |
--------------------------------------------------------------------------------