Skip to content

dellasys/vault_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vault_api

DB: CouchDB

DB name : vault_api

DEMO Link : https://vaultapi20180404.herokuapp.com/object/

ONLY GET and POST requests

Running in Localhost :

You need to create a view in couchDB with the following details :

  • Design Document name : getData
  • Index name : getdata
  • Map function:
function (doc) {
  if(doc.mykey && doc.value){
    emit(doc.mykey, {"value":doc.value,"timestamp":doc.timestamp});
  }
}

Configuration

Change MODE in .env file to either CLOUD or LOCAL for switching the connection.

# Switch between CLOUD or LOCAL
MODE=CLOUD
HOST=xxx.com
USERNAME=xxxxx
PASSWORD=xxxxx
LOCALHOST=http://localhost:5984
PORT=3000

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published