Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Example of event sourcing for better error handling

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 templates
Octocat-spinner-32 README.rst
Octocat-spinner-32 bootstrap.py
Octocat-spinner-32 handlers.py
Octocat-spinner-32 model.py
Octocat-spinner-32 replay.py
Octocat-spinner-32 serv.py
Octocat-spinner-32 test_handlers.py
Octocat-spinner-32 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.