psjrs is a modified Scala web project; you can easily build the project you want on top of it.
The project is based on frameworks such as play and silhouette. Play makes it easy to set up a web service, while Silhouette provides user authentication services. In addition, I've customized the configuration files and file contents to make it easier for you to organize content.
The project is located at:
[github_widget repo="yuikns/psjrs"]
One thing to emphasize: forks and stars are welcome.
Below is an introduction to how to use the project, its main configuration, and so on. I intended to make this post detailed, but I'm also eager to show it off, so what you see now is still a work in progress... Welcome, and I look forward to your continued attention in any form. In addition, the project itself is being updated continuously; pull requests are welcome.
Quick Start
Requirements
First, you need a Java virtual machine with JDK 1.8 (argcv has many installation guides, such as for OS X and CentOS 7). Next, you need to download or install sbt from the official sbt website. sbt is essentially a set of Java-based scripts; it can be placed anywhere, so there's no need to worry too much.Once you have the basic environment ready, you're good to go.
Running
You can clone a copy with git, enter the directory, and run `sbt compile run` to start it. Of course, you can also run `sbt run` directly; then when you first visit the site it will pause for a moment while the code compiles. By the way, Scala has many strengths, but compilation speed is not one of them—C++ compiles much faster.~ $ git clone --recurse-submodules git@github.com:yuikns/psjrs.git
~ $ cd psjrs
~/psjrs $ sbt run
[info] Loading project definition from ~/psjrs/project
[info] Updating {file:~/psjrs/project/}psjrs-build...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Set current project to psjrs (in build file:~/psjrs/)
[info] Updating {file:~/psjrs/}psjrs...
[info] Resolving jline#jline;2.12.1 ...
[info] Done updating.
--- (Running the application, auto-reloading is enabled) ---
[info] p.a.l.c.ActorSystemProvider - Starting application default Akka system: application
[info] p.c.s.NettyServer - Listening for HTTP on /0:0:0:0:0:0:0:0:9000
(Server started, use Ctrl+D to stop and go back to the console...)
When you see the message "Listening for HTTP on /0:0:0:0:0:0:0:0:9000", you can visit the web service.
Of course, you can also download the project and follow the same steps after extracting it.
You can also use the command sbt dist to package the project.
$ sbt dist
...
[info] Your package is ready in ~/psjrs/target/universal/psjrs-0.0.1.zip
[info]
[success] Total time: 35 s, completed Sep 30, 2015 8:39:20 PMFinally, here are the slides I presented to my group and friends a while back: psjrs-intro-slides
Comments
No comments yet — be the first to write one.