Picky offers a few generators to have a running server and client up in 5 minutes. So you can either get started right away
or, run gem install
gem install picky-generators
and simply enter
picky generate
This will raise an Picky::Generators::NotFoundException
and show you the possibilities.
The "All In One" Client/Server might be interesting for Heroku projects, as it is a bit complicated to set up two servers that interact with each other.
Currently, Picky offers two generated example projects that you can adapt to your project: Separate Client and Server (recommended) and All In One.
If this is your first time using Picky, we suggest to start out with these even if you have a project where you want to integrate Picky already.
The server is generated with
picky generate server target_directory
and generates a full Sinatra server that you can try immediately. Just follow the instructions.
All In One is actually a single Sinatra server containing the Server AND the client. This server is generated with
picky generate all_in_one target_directory
and generates a full Sinatra Picky server and client in one that you can try immediately. Just follow the instructions.
Picky currently offers an example Sinatra client that you can adapt to your project (or look at it to get a feeling for how to use Picky in Rails).
This client is generated with
picky generate client target_directory
and generates a full Sinatra Picky client (including Javascript etc.) that you can try immediately. Just follow the instructions.