thedod / evenyaru

An urban game

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Temporary branch, changing the protocol so that the client stores the token explicitly because sockets don't get cookies (it's not like we're being mean to sockets. We'd gladly give them a cookie, but they just don't get it).


This is the Android apk version of the Evenyaru server, implemented in kivy as a service

  • One of the 2 phones should serve as a hotspot (internet connection not needed), and also run this apk.

  • Both phones should either browse to http://192.168.43.1:5000 or run the Ionic client hardwired to that address instead of the Heroku server.

What I did was create a mock redis.py that uses json-store and methods are wrapped in a Lock.acquire(True) for thread-safety.

Note: You can run DEBUG=1 ./runserver.sh but can't run in apk as debug (don't know why): Service crashes (without saying why in the logcat or kivy's log).

Building

Runtime

  • Sevrice logs to /sdcard/.evenyaru-logs/ (service/redis.py says that)

  • "redis db" is at /sdcard/.evenyaru.json


Original README


Evenyaru

A game for people waiting in traffic lights.

Implemented on mobile phones with a browser connected to distributed servers coordinating via redis and websockets because that's the fastest way to go. Unbelievable.

About

An urban game


Languages

Language:JavaScript 83.3%Language:CSS 16.0%Language:Python 0.4%Language:HTML 0.2%Language:Shell 0.0%