-
Notifications
You must be signed in to change notification settings - Fork 74
Getting started
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.
Basics
Diving in
- bin/setup
- Config
- CORS
- Endpoints
- Error Handling
- Logging
- Models
- Mediators
- Migrations
- Rake Tasks
- Request IDs
- RequestStore
- Schema
- Serialization
- Testing
- Updating
Guides