Skip to content

Writing your first app

Pedro Belo edited this page Aug 6, 2015 · 3 revisions

Lets write a todo API in Pliny, because Ruby developers don't have enough of them!

Assuming you went through the Getting started guide and have Pliny setup, the first step is to initialize a new app:

$ pliny-new todo-api

This initializes a new Pliny app containing all the base files we need to build a Todo app on top. Lets start by initializing the app:

$ cd todo-api
$ bin/setup

This single script will install dependencies, create a database, setup the environment, and more.