Giter Site home page Giter Site logo

jinx's Introduction

jinx

server

database

user - [uid] nickname, picture, push token, unit, unit time
game id list - [uid] 'current.to':game id dict, game id:'wordpair, turn' dict
game - [uid, to, time] turn, 'word pair' dict 
game queue - [game id, to uid] message (only memcache, always remove)

code

get main
    kakao talk id
    nickname(is exist)
    pickture(is exist)
    push token(is exist)
    
    user info
    'game id, last word pair, user id pair, turn, success' list

send message
    kakao talk id
    game id(is exist)
    to kakao talk id(if not random)
    to kakao talk nickname(if not random, is not game user)
    to kakao talk picture(if not random, is not game user)
    success(is match)
    message

get game
    game id
    
    message list

get game queue
    kakao talk id
    game id
    
    turn
    match
    message

install

sudo apt-get update
sudo apt-get install git-core

sudo vi /etc/apt/sources.list
deb http://www.apache.org/dist/cassandra/debian 11x main
deb-src http://www.apache.org/dist/cassandra/debian 11x main

gpg --keyserver pgp.mit.edu --recv-keys F758CE318D77295D
gpg --export --armor F758CE318D77295D | sudo apt-key add -
gpg --keyserver pgp.mit.edu --recv-keys 2B5C1B00
gpg --export --armor 2B5C1B00 | sudo apt-key add -

sudo apt-get update
sudo apt-get install cassandra

sudo apt-get install python-pip python-dev build-essential
sudo pip install --upgrade pip
sudo pip install --upgrade virtualenv

sudo pip install python-memcached
sudo pip install tornado
sudo pip install pycassa

cassandra

CREATE COLUMN FAMILY user WITH comparator = UTF8Type AND key_validation_class=UTF8Type;
CREATE COLUMN FAMILY game WITH comparator = UTF8Type AND key_validation_class=UTF8Type;
CREATE COLUMN FAMILY gamelist WITH comparator = UTF8Type AND key_validation_class=UTF8Type;

jinx's People

Contributors

devmario avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.