Skip to content

CitizenSocialLab/WadRas

Repository files navigation

README

CitizenSocialLab: WadRas

Experiment designed and implemented to be performed in WadRas during the performance Veus entre Murs.

This participatory experiment consist on a set of dilemmas presented as behavioural games, four Prisoner's Dilemma, designed to relate participants: (1) random selection, (2) staring eyes, (3) wall in-out, and (4) wall out-in. The selections 3 and 4 are asyncron. All these games are played by 2 individuals.

Data

Not available

Derived Scientific Publications

Not available

Configuration

Steps are necessary to get WADRAS install, up and running in local network.

Creation of the project

Database MySQL
Create MySQL database: name_db
Create user database: user_db
Create password database: pass_db

Introduce this information about the database in: /WadRas/settings.py

Environment
mkvirtualenv wadras

Requirements
pip install -r requirements.txt

MongoDB
mongod --dbpath /.../wadras/ddbb

Load text File with text and translations: /.../WadRas/game/i18n/translations.xlsx

python excel\_to\_mongodb.py

Run Server
python manage.py runserver python manage.py runserver localhost:port

Migrations
python manage.py makemigrations
python manage.py migrate

Run project in Local

Step 1: Run MySQL server
Run MySQL: mysql.server start

Step 2: Open terminal tabs and work on the environment

in Tab 1: MongoDB
in Tab 2: MySQL
in Tab 3: Run Application

Work on environment (in each terminal tab): workon wadras

Step 3: Run MongoDB (Tab 1)
Run mongodb: mongod --dbpath /.../WadRas/ddbb

Step 4: MySQL actions (Tab 2)
Directory: cd /.../WadRas/
Database: mysql -u user_db -p (pass_db)

Drop database: drop database name\_db;
Create database: create database name\_db;
Exit: exit;

Modificate fields of database: python manage.py makemigrations
Refresh database: python manage.py migrate

Step 5: Load texts (Tab 2)
Load translations: python excel_to_mongodb.py

Step 6: Load actions "Wall in-out" (Tab 2)
Load actions: python wadras_prisoners.py

Step 7: Run Server (Tab 3)
Directory: cd /.../WadRas/
Runserver: python manage.py runserver localhost:port

Access client

Client application:
http://localhost:port/

Control and Administration:
http://localhost:port/admin

Versions

Version 1.0

License

CitizenSocialLab is licensed under a GNU Affero General Public License

All the contents of Wad-Ras repository are under the license CC BY-NC-SA license

Contributors

Julián Vicens

Contact

Julian Vicens: julianvicens@gmail.com

About

Experiment designed, implemented and performed in WadRas prison during the performance Veus entre Murs.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published