Skip to content
morgandixon edited this page Sep 28, 2014 · 1 revision

To run Prefab, you need the source code and CouchDB. You will need to:

  1. Install CouchDB.

  2. Get the Prefab Prototype library and Target library. They are Couch DB repositories.

    1. Open CouchDB. It should open in an internet browser. After initialization you can open it at http://127.0.0.1:5984/_utils/
    2. In the interface (known as futon, on the right side) click on Tools->Replicator or just goto http://127.0.0.1:5984/_utils/replicator.html
    3. Specify the remote database as http://couch.morgandixon.net/ptypes, and local as your ptypes
    4. Click Replicate to clone the database.
    5. Also clone the target library, using the same steps but for http://couch.morgandixon.net/targets to targets
    6. In the user study, these databases are called *_layers_user_study
  3. Clone the Prefab-Internal solution. Open the Prefab.sln solution in Visual Studio. You will notice that there are several projects within that solution.

  • core contains the main logic, which includes all of the base functionality for interpreting interfaces.

  • python_layer_host is a wrapper to Prefab Layers that enables (b) authoring interpretation logic in Python scripts.

  • The project in the directory, authoring, is a basic authoring tool for testing your interpretation logic. It visualizes the widgets that Prefab and your Python scripts interpret. It also allows you to train Prefab with examples. You give it a recorded video of an interface, which you can then skim through frame by frame to examine the system's behavior.

Clone this wiki locally