Giter Club home page Giter Club logo

keybase's Introduction

keybase

A version based key-value store. There are different methods of storing and tracking multiple versions of a record based on database you are using and requirement. I am using mongodb, storing all versions in a same collection with timestamp as version number.

Keybase Exposes API with following endpoints

  1. POST /object Accepts a key(string) and value(some json blob/string) and stores them in mongodb database.If an existing key is sent,new version of document is created with updated values
  2. GET /object/:key Accept a key and return the latest value of the key.this enpoint also accepts timestamp as query parameter. GET /object/:key?timestamp= (unix timestamp in miliseconds) returns the value of the key at that particular time. if timpestamp is before creation of key, API will return 404 not found.

Hosted

http://ec2-13-126-254-11.ap-south-1.compute.amazonaws.com:3000/

Technology

  • Node LTS version(8.11.1)
  • Mocha and Chai for Testing
  • MongoDB

Installation & Usage

  • clone repoistory.
  • cd into the directory.
  • run npm install
  • run npm start or node src/index.js

Tests

  • npm test

Docker

  • docker-compose up if it doesn't work may be u need to change mongodb service volumes path as it different on Mac

keybase's People

Contributors

rayeesmir 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.