GithubHelp home page GithubHelp logo

rahulreddy245 / distributed-key-value-store-server Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 1.0 694 KB

A basic implementation of distributed server. It has the key-value store service. It also has the feature of sequence service and logging.

Python 100.00%

distributed-key-value-store-server's Introduction

-------------------------											
README : Key-Value Store
-------------------------

------------
INTRODUCTION
------------
We have developed our code in Python 2.7 and used Thrift-0.9.3 library. The program has a server called kvserver.py and a client called kvclient.py which uses the kvstore.py, generated from the thrift file, as a communication mechanism.

-------------------
EXECUTING OUR CODE
-------------------
Please follow the steps in prerequisites section before executing this code.
1. Unzip the project folder we sent you and navigate to path in command line: /"path to project folder"/gen-py/.
2. Running Server: First, run the kvserver.py using command python kvserver.py. This should print the hostname to the terminal.
3. Running Client: Now open another terminal at the same location, run the command
4. For running client on Unix/Linux/Mac execute the following command on the command shell,
./kvclient -server localhost:9090 -set a apple
./kvclient -server localhost:9090 -get a 
./kvclient -server localhost:9090 -del a 
5. For running client on Windows execute the following command on the command shell,
 python ./kvclient -server localhost:9090 -set a apple
6. Please check the screenshots if you need more help in execution or anyone of contact us

---------------
PRE-REQUISITES
---------------
Please follow the following steps before running the project.
1. Install Python 2.7 to your PC. 
2. Download the thrift repository from github. Link- https://github.com/apache/thrift (Not the exe, but the actual repository).
3. Using the command prompt, navigate to the directory, /"path to thrift folder"/lib/py/.  You should have setup.py file present in that folder.
4. Use the command python setup.py install on the command line. (This should install the thrift python libraries)
5. Now navigate to the project folder /"path to project folder"/gen-py/.

---------------------
SCREENSHOTS AND CODE
---------------------
Screenshots of the running program can be found in the Screenshots folder. All our code and other files will be in the gen-py folder.

---------------
GROUP MEMBERS
---------------
Group # 4
Rahul Reddy ([email protected])
Suraj Patel ([email protected])
Jubin Soni ([email protected])
Balaji Reddy ([email protected])

distributed-key-value-store-server's People

Contributors

jubins avatar rahulreddy245 avatar

Watchers

 avatar  avatar  avatar

Forkers

jubins

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.