github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

tomjadams / slinky-demo

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 3
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Slinky (Scalaz 4 HTTP) Demonstration — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Cleaning up for talk 
tomjadams (author)
Sun Sep 13 05:52:09 -0700 2009
commit  12c2692f4657bfc0254712fb9fba933863d56cc0
tree    5d8987cc5b5727663ebcc5793d09c3e94c787a26
parent  40f19501dd7c2f923feb81ca00efce78353963e9
slinky-demo /
name age
history
message
file .gitignore Sat Sep 05 20:53:12 -0700 2009 Initial project [tomjadams]
file LICENCE Sat Sep 05 20:53:12 -0700 2009 Initial project [tomjadams]
file NOTICE Sat Sep 05 20:53:12 -0700 2009 Initial project [tomjadams]
file README.markdown Mon Sep 07 04:08:01 -0700 2009 doco [tomjadams]
directory etc/ Sat Sep 05 20:53:12 -0700 2009 Initial project [tomjadams]
directory lib/ Sat Sep 05 21:06:28 -0700 2009 compiling compiling... [tomjadams]
directory project/ Sat Sep 12 20:58:38 -0700 2009 Cleanup & implicits on view rendering. [tomjadams]
file slinky-demo.iml Sat Sep 05 21:09:46 -0700 2009 now runs [tomjadams]
file slinky-demo.ipr Fri Sep 11 23:20:05 -0700 2009 moved a bunch of stuff around, cleaned up html ... [tomjadams]
directory src/ Sun Sep 13 05:52:09 -0700 2009 Cleaning up for talk [tomjadams]
README.markdown

Slinky Demo Project

Demonstration project of Slinky, Scalaz's HTTP library.

Setup

  1. Install sbt: http://simple-build-tool.googlecode.com/
  2. Pull down dependencies.
    $ sbt update
    
  3. This demo currently rely on some unpublished artefacts, to get it:
    $ # Get sqm: http://github.com/tomjadams/scala-query-migrations/tree/master
    $ git clone git://github.com/tomjadams/scala-query-migrations.git
    $ sbt update
    $ sbt publish-local
    $ # Get: http://github.com/szeiger/scala-query/tree/scala-2.7
    $ git clone git://github.com/szeiger/scala-query.git
    $ git checkout origin/scala-2.7
    $ sbt update
    $ sbt publish-local
    

You should be good to go!

Quick run

In one console:

$ sbt run

In another:

$ curl -i http://localhost:8081/api/register -d '{"name":"Slinky Malinky","organisation":"Scattercat"}'
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 109
Server: Jetty(7.0.0.RC2)

{"description" : "Person registration successful.", "name" : "Slinky Malinky", "organisation" : "Scattercat"}

Run tests

$ sbt run    # in one console
$ sbt test   # in another

Deploy

Note. This does not currently work as we use newer Jetty libs. You're welcome to have a crack at fixing it.

Start Jetty

$ sbt jetty-run

Have sbt/Jetty listen for changes & redeploy

$ sbt ~ prepare-webapp

Stop Jetty

$ sbt jetty-stop
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server