Skip to content

shouldbee/basic-spray.g8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

basic-spray.g8

This is a minimum giter8 template for Spray and sbt projects.

  • sbt
  • scalatest
  • scalacheck
  • idea-gen
  • scalariform
  • spray
  • akka (spray depends this)

Installation

$ g8 shouldbee/basic-spray
$ cd <project-name>

Start HTTP Server

Start Spray HTTP server type reStart in sbt console:

$ ./sbt
> reStart

Then request against localhost:8080/hello via any browser or command like httpie:

$ http localhost:8080/hello
HTTP/1.1 200 OK
Content-Length: 19
Content-Type: text/plain; charset=UTF-8
Date: Wed, 25 Jun 2014 04:55:00 GMT
Server: spray-can/1.3.1

Hello org.foo.bar!

Stop HTTP Server

To stop HTTP Server type reStop in sbt console:

> reStop

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published