Skip to content
Pedro Belo edited this page Aug 6, 2015 · 7 revisions

Before using Pliny you'll need to be familiar (and have available):

  • Postgres with the uuid-ossp module. Most installers will have this covered, you can confirm it's available by running CREATE EXTENSION "uuid-ossp";
  • Foreman, to declare processes with Procfile
  • Ruby, Rubygems, Sinatra

Pliny is distributed as a gem. Install it like:

$ gem install pliny

Then initialize your new app:

$ pliny-new myapi

Next up run the bin/setup script to install dependencies, create databases, etc:

$ cd myapi
$ bin/setup

You can confirm your environment is setup by running tests:

$ rake
No examples found.
Finished in 0.00008 seconds
0 examples, 0 failures

And use Foreman to boot your app server:

$ foreman start

Next: Writing your first app.