Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Example of event sourcing for better error handling
Python
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
templates
README.rst
bootstrap.py
handlers.py
model.py
replay.py
serv.py
test_handlers.py
test_model.py

README.rst

Installation:

# Install virtual env if you havn't already

# pip install virtualenvwrapper

# source /usr/local/bin/virtualenvwrapper.sh

mkvirtualenv cltpy_chat

pip install sqlalchemy

pip install beaker

pip install flask

# Build all the database in /tmp (sorry windows didn't test)

python bootstrap.py

# Start the web server

python serv.py

open http://localhost:5000/

# enter name and click login

# enter random text into send a couple times

# enter hipster in random text and see error rate go up

# ctrl-c server to stop it from running

# Run the replay command to see first error

python replay.py

# fix the code in handlers.handle_message

# Run replay again seeing no errors :)

python replay.py

# WOOT done

Something went wrong with that request. Please try again.