mattupstate / rittenhouse

Example application for http://meetup.com/nycpython/events/228922678/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rittenhouse

In days of yore, implemeting asynchronous code with Python usually meant using something like gevent, Twisted, or Tornado. These are all fantastic tools, but Python 3 now supports native coroutines via asyncio. Additionally, there are a growing number of libraries that take advantage of this feature. As such, it is now posisble to implement such things as the Websocket Protocol without the aforementioned tools.

Rittenhouse is meant to serve as an illustration of how one might build a basic web application that offers a Websocket interface using aiohttp. Please note that at the time this was developed this library was still very new and in active development.

This application was originally developed for a presentation given at an NYC Python meetup on March 10th, 2016.

Prerequisites

Before getting started, please install VirtualBox, Docker and Compose. This is to provide a predictable and repeatable local development environment.

Quick Start(s)

Ensure the Docker machine is running:

$ eval "$(make machine)"

To run the application:

$ make server

To view the application logs:

$ docker-compose logs web

When you do not care to work with this project anymore you may want to stop the Docker machine:

$ make stop

About

Example application for http://meetup.com/nycpython/events/228922678/

License:MIT License


Languages

Language:Python 61.5%Language:JavaScript 19.6%Language:HTML 8.6%Language:Makefile 7.6%Language:CSS 1.4%Language:Shell 1.2%