Skip to content

jeffreykirchner/serial_dictatorship

Repository files navigation

Serial Dictatorship Setup

Serial Dictatorship Django Channels experiment.

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/serial_dictatorship.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 serial_dictatorship 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.12-distutils

Install Virtual Environment:

sudo apt install pipx
pipx install virtualenv
virtualenv --python=python3.13 _project_env
source _project_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

A serial dictator game is a variation of the classic dictator game that involves a series of decision-making rounds

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors