-
Notifications
You must be signed in to change notification settings - Fork 6
Setting up Prefab
To run Prefab, you need the source code and CouchDB. You will need to:
-
Install CouchDB.
-
Get the Prefab Prototype library and Target library. They are Couch DB repositories.
- Open CouchDB. It should open in an internet browser. After initialization you can open it at http://127.0.0.1:5984/_utils/
- In the interface (known as futon, on the right side) click on
Tools->Replicatoror just goto http://127.0.0.1:5984/_utils/replicator.html - Specify the remote database as http://couch.morgandixon.net/ptypes, and local as your ptypes
- Click Replicate to clone the database.
- Also clone the target library, using the same steps but for http://couch.morgandixon.net/targets to targets
- In the user study, these databases are called *_layers_user_study
-
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.