📖
Empirica v1 Docs
  • Introduction
  • Getting Started
    • Setup
      • Windows WSL Instructions
    • Creating your experiment
    • Running your experiment
    • Updating your experiment
  • Guides
    • Tutorial: Your First Experiment
      • Part 1: Getting Started
      • Part 2: Configuring the Experiment
      • Part 3: Adding Social Information and New Factors
      • Part 4: Adding Chats
      • Part 5: Adding Bots
    • The Settings File
      • Specifying Login Details
      • Setting player ids via URL queries
      • Connecting Locally to MongoDB
    • The Admin Panel
    • Special Empirica Elements (and how to modify them)
    • Deploying Your Experiment
      • Database
      • Hosting
    • Managing the Data
    • Using Custom Collections
  • Conceptual Overview
    • Structure
    • Game Life Cycle
      • Customising when players submit stages
    • Concepts
    • Randomization & Batches
    • API
  • FAQ
    • I need help!
    • The Processes and Elements of an Empirica Experiment
    • Managing Players and Games
  • Community Demos
    • Guess The Correlation
    • Random Dot Motion
    • Room Assignment
  • Tips & Tricks
    • Helpful Linux Commands
    • Code Editors
  • Links
    • Empirica website
    • Twitter
    • GitHub
Powered by GitBook
On this page
  • Installing the node modules
  • Running the app locally
  • Loading the factors and treatments
  • Testing the app

Was this helpful?

  1. Getting Started

Running your experiment

Once you have created an experiment using either create-empirica-app or a git clone.

PreviousCreating your experimentNextUpdating your experiment

Last updated 3 years ago

Was this helpful?

Installing the node modules

Whenever you first pull or clone an app from a repository, you need to run this command to install all the Node packages:

meteor npm install

Running the app locally

Run the app on your local machine with one command:

meteor

This can take a few minutes.

This will start the app that you can access as a participant:

You can access the admin panel here:

Log in with the username and password provided in the command line.

Loading the factors and treatments

Treatments and factors can also be entered manually via the admin panel.

Empirica also enables "experiment as code" by which experimental treatments and factors can stored in a .yaml file (e.g., factors.yaml).

To load factors and treatments from a .yaml file , go in the admin panel and:

  • click on the Configuration button

  • click on import

  • select the .yaml file you want to import the factors and treatments from

  • wait a few seconds for the factors and treatments to be imported

Testing the app

To run a game, create a new batch with the games of treatments you want to use and click start on the batch.

  • Click on the Reset current session button in the top right to reset this player, and create a new game for this player to join.

  • Click on the New Player button in the top right to open a new tab with a different player (you will see tab with an id).

  • Go to the Players tab in the admin panel and retire players that have finished or cancelled.

The app will automatically ("hot") reload when save changes to the code.

Open a player tab by going to or clicking on open app.

The player that you open with is cached on your browser. Whenever you start a game with this player, your local app will keep that information. To play again there are multiple things you can do:

https:/localhost:3000/
https:/localhost:3000/admin
https:/localhost:3000/
https:/localhost:3000/