Skip to content
/ otree Public

oTree is an open-source and online software for implementing interactive experiments in the laboratory, online, the field or combinations

Notifications You must be signed in to change notification settings

n1klaus/otree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup

# Setup virtual environment
python3 -m venv .venv
# Activate virtual environment
source .venv/bin/activate
# Install otree
pip3 install -U otree
# Create project
otree startproject app
cd app

# Create application
otree startapp mini_ultimatum
otree startapp exit_survey

# Run server
otree devserver

Testing the application locally

# Create virtual environment
python3 -m venv .venv
# Activate virtual environment
source .venv/bin/activate
# Change directory to app
cd app
# Install requirements
python3 -m pip install -U -r requirements.txt
# Run server
otree devserver

Setup Docker container with Alpine Linux and Python

# Building the image using Dockerfile
docker build -f Dockerfile . --tag otree_image

docker run -it --rm \
    --name otree_container \
    --publish 8000:8000 \
    -d otree_image

docker exec -it otree_container bash

References

About

oTree is an open-source and online software for implementing interactive experiments in the laboratory, online, the field or combinations

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published