Scala JavaScript Java
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
conf
db/evolutions
public
test
.gitignore
README

README

LOLOLOLOLOLOLOLOLOLOLOLOLOL IGNORE ALL OF THIS.


After checking out the project, make sure to run `play dependencies`.

Running the server with postgres:
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start

Creating the database:
createdb instaromeo

Create the root role
createuser -sPE instaromeo    (*note: instaromeo is the name of the user)

Console for the db:
psql instaromeo

To connect to the db:
  Goto localhost:9000/@db
  enter jdbc:postgresql://localhost/instaromeo


docs:
Validation: http://www.playframework.org/documentation/api/1.2.3/play%2Fdata%2Fvalidation%2FValidation.html
Option Notation: http://www.scala-lang.org/api/rc/scala/Option.html
Cheat Sheet: http://playcheatsheet.appspot.com/show/ArtemMedeu/armed/play-cheatsheets
Play scala docs (mildly broken): http://scala.playframework.org/documentation/api/scala-0.9.1/play/utils/Scala$MayErr.html

Sample post request
$.post("orders",{senderAddress1:"werre",senderCity:"Ottawa",senderState:"On",senderCountry:"CA",senderZip:"123456", senderName:"Daniel B",recipientName:"Andrea B",recipientPhone:"1523423232",senderEmail:"daniel.beauchamp@gmail.com", senderPhone:"1452324324" }).success(function(){console.log('ya')})

**notes:

show tables in postgres is \dt

How To Install Scala bundle for TextMate:

    git clone git://github.com/mads379/scala.tmbundle.git
    open scala.tmbundle.git