Skip to content

cenkcorapci/sumatra

Repository files navigation

Sumatra

Deploy Coverage Status Build Status

A simple Reddit clone that uses a transient in-memory data storage.

Here is a demo

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.

Features

  • 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.

How to run

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

Tests

Coverage is added to dependencies, so you can run the unit tests by running the following command;

coverage run sumatra_spec.py

About

A simple in-memory Reddit clone

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors