A simple Reddit clone that uses a transient in-memory data storage.
Pelease note that this app, stores its data in application context, which will make it probabilistic under any load balanced environment such as Heroku and it will have data inconsistencies.
- Uses Pykka actor models for concurreny in in-memory data storage.
- Only supports one subreddit.
- Users can up vote, down vote and create new topics without authentication.Just enter your name for logging in.
You can use pip for installing dependencies via this command;
pip install -r requirements.txt
To boot up the web app with gunicorn;
gunicorn -b 0.0.0.0:8080 sumatra:app
To boot up the app with python;
python sumatra.py
Coverage is added to dependencies, so you can run the unit tests by running the following command;
coverage run sumatra_spec.py