module Orchestrate::Rails::Tutorial::PopulateFilmsCollection

Populating the films collection with data

You can skip this step if you've fully populated the films collection via the orchestrate tutorial.

Method 1. Cut-and-paste using the Orchestrate.io dashboard

Use the orchestrate.io dashboard to populate the film application with sample data.

Method 2. Download the orchestrate-api demo

Install the orchestrate-api gem.

$ gem install orchestrate-api

Download the demo from github.

$ git clone https://github.com/jimcar/orchestrate-api-demo.git api-demo

If you created the configuration file in the previous step, copy it into the demo directory. Otherwise, you can simply edit the demo's config file to insert your api-key.

$ cp <path>/orchestrate_config.json ./api-demo/orchestrate_config.json

Run the demo from the command line:

$ cd ./api-demo
$ ruby orchestrate-demo.rb -populate

Note: Use the -show_response option to see the response data.

Next

Setting up the rails environment