GithubHelp home page GithubHelp logo

kayos's Introduction

kayos

Keep All Your Objects Safe

Cloning:

Build dependencies:

  • cmake
  • snappy
  • sudo apt-get install cmake libsnappy-dev

To build kayos:

  • Unix: mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && cmake --build . -- -j9
  • Unix debug: cmake -DCMAKE_BUILD_TYPE=Debug .. && cmake --build . -- -j9

To run:

  • ./kayos-server dbname
  • ./kayos-producer dbname
  • ./kayos-consumer dbname

Producer port:

  • telnet localhost 9890

Producer commands:

  • set key val
  • delete key
  • {"command": "set", "key": "a", "value": "1"}
  • [{"command": "set", "key": "a", "value": "1"},{"command": "set", "key": "b", "value": "2"}]

Consumer port:

  • telnet localhost 9891

Consumer commands:

  • get key
  • iterate
  • iterate 100 -- seqnum >= 100
  • {"command": "iterate"}
  • {"command": "iterate", "start": "100"}
  • {"command": "get", "key": "a"}

HTTP commands:

  • curl -X GET http://127.0.0.1:9891/_iterate

Troubleshooting:

  • ./kayos-consumer: error while loading shared libraries: libforestdb.so: cannot open shared object file: No such file or directory Run ldconfig as root to udpate the library cache.

cannot make path: /usr/local/var/lib/kayos libc fatal_error: mkdir failed errno = 13, strerrno: Permission denied``` Fix the permissions for /usr/local so that it is writable by your user.

git submodule cheat sheet:

  • git submodule update --init
  • git submodule update --remote forestdb
  • git submodule update --remote jansson
  • git submodule update --remote http-parser
  • git submodule foreach git pull origin master

cmake cheat sheet (forestdb):

  • mkdir -p forestdb/build && cd forestdb/build && cmake .. && make -j && make install && cd ../../
  • sudo echo "hi" && mkdir -p forestdb/build && cd forestdb/build && cmake .. && make -j && sudo make install && cd ../../
  • Linux: cmake --build . -- -j8

cmake cheat sheet (jansson):

  • mkdir -p jansson/build && cd jansson/build && cmake -DJANSSON_BUILD_SHARED_LIBS=1 .. && make -j && make install && cd ../../
  • sudo echo "hi" && mkdir -p jansson/build && cd jansson/build && cmake -DJANSSON_BUILD_SHARED_LIBS=1 .. && make -j && sudo make install && cd ../../

windows cmake cheat sheet:

  • Windows 32: mkdir build && cd build && cmake -G"Visual Studio 12" -DCMAKE_BUILD_TYPE=Release .. && cmake --build .
  • Windows 64: mkdir build && cd build && cmake -G"Visual Studio 12 Win64" -DCMAKE_BUILD_TYPE=Release .. && cmake --build .

kayos's People

Contributors

erg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

damienkatz

kayos's Issues

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.