Skip to content

jeffreykirchner/GARP

Repository files navigation

GARP

Testing the generalized axiom of revealed preferences with three budget constraints.

Local setup on Windows:

Install Visual Studio Code with WSL: https://learn.microsoft.com/en-us/windows/wsl/tutorials/wsl-vscode
Open VS Code, activate WSL, and create a new folder.
Clone this repo into the new folder using the command:

cd new_folder_name
git clone https://github.com/jeffreykirchner/GARP.git .

Install PostgreSQL and REDIS in WSL: https://learn.microsoft.com/en-us/windows/wsl/tutorials/wsl-database

Set up PostgreSQL in WSL:

create user dbadmin with encrypted password 'password_here';
create database garp with owner dbadmin;

Project Setup

local_settings.py:

Rename local_settings_sample.py to local_settings.py
local_settings.py is used for local development and is excluded from the repo
. Update the database section of this file with the info from your locally run instance of PostgreSQL.

Python and Virtual Environment Setup:

Install Python 3.13:

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update 
sudo apt install python3.13
sudo apt-get install python3.13-distutils

Install Virtual Environment:

sudo apt install pipx
pipx install virtualenv
virtualenv --python=python3.13 _garp_env
source _garp_env/bin/activate
pip install -r requirements.txt

//deactivate virtual environment
deactivate

Setup Django Project:

When asked to restore the database, select "No".

sh setup.sh
python manage.py runserver

Navigate to http://localhost:8000 in your browser to see the project running.
Log in with the email and password you created in the previous step.

About

Testing the generalized axiom of revealed preferences (GARP) with three budget constraints. For Bart Wilson and Ernesto María Gavassa Pérez.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors