Store and retrieve your schemas via a simple interface
Switch branches/tags
gh-pages greenkeeper-babel-cli-6.5.1 greenkeeper-babel-cli-6.6.0 greenkeeper-babel-cli-6.6.4 greenkeeper-babel-cli-6.6.5 greenkeeper-babel-cli-6.7.5 greenkeeper-babel-cli-6.7.7 greenkeeper-babel-cli-6.8.0 greenkeeper-babel-cli-6.9.0 greenkeeper-babel-cli-6.10.0 greenkeeper-babel-cli-6.10.1 greenkeeper-babel-cli-6.14.0 greenkeeper-babel-cli-6.16.0 greenkeeper-babel-cli-6.18.0 greenkeeper-babel-cli-6.22.0 greenkeeper-babel-cli-6.22.1 greenkeeper-babel-cli-6.22.2 greenkeeper-babel-cli-6.23.0 greenkeeper-babel-cli-6.24.0 greenkeeper-babel-cli-6.24.1 greenkeeper-babel-plugin-add-module-exports-0.1.3 greenkeeper-babel-plugin-add-module-exports-0.1.4 greenkeeper-babel-plugin-add-module-exports-0.2.0 greenkeeper-babel-plugin-add-module-exports-0.2.1 greenkeeper-babel-plugin-syntax-async-functions-6.8.0 greenkeeper-babel-plugin-syntax-async-functions-6.13.0 greenkeeper-babel-plugin-transform-regenerator-6.5.2 greenkeeper-babel-plugin-transform-regenerator-6.6.0 greenkeeper-babel-plugin-transform-regenerator-6.6.5 greenkeeper-babel-plugin-transform-regenerator-6.8.0 greenkeeper-babel-plugin-transform-regenerator-6.9.0 greenkeeper-babel-plugin-transform-regenerator-6.11.4 greenkeeper-babel-plugin-transform-regenerator-6.14.0 greenkeeper-babel-plugin-transform-regenerator-6.16.0 greenkeeper-babel-plugin-transform-regenerator-6.16.1 greenkeeper-babel-plugin-transform-regenerator-6.20.0 greenkeeper-babel-plugin-transform-regenerator-6.21.0 greenkeeper-babel-plugin-transform-regenerator-6.22.0 greenkeeper-babel-plugin-transform-regenerator-6.24.1 greenkeeper-babel-preset-es2015-6.5.0 greenkeeper-babel-preset-es2015-6.6.0 greenkeeper-babel-preset-es2015-6.9.0 greenkeeper-babel-preset-es2015-6.13.0 greenkeeper-babel-preset-es2015-6.13.1 greenkeeper-babel-preset-es2015-6.13.2 greenkeeper-babel-preset-es2015-6.14.0 greenkeeper-babel-preset-es2015-6.16.0 greenkeeper-babel-preset-es2015-6.18.0 greenkeeper-babel-preset-es2015-6.22.0 greenkeeper-babel-preset-es2015-6.24.0 greenkeeper-babel-preset-es2015-6.24.1 greenkeeper-babelify-7.3.0 greenkeeper-bluebird-3.3.4 greenkeeper-bluebird-3.3.5 greenkeeper-bluebird-3.4.0 greenkeeper-bluebird-3.4.1 greenkeeper-bluebird-3.4.3 greenkeeper-bluebird-3.4.4 greenkeeper-bluebird-3.4.5 greenkeeper-bluebird-3.4.6 greenkeeper-bluebird-3.4.7 greenkeeper-bluebird-3.5.0 greenkeeper-brace-0.8.0 greenkeeper-brace-0.10.0 greenkeeper-browserify-13.0.1 greenkeeper-browserify-13.1.0 greenkeeper-browserify-13.1.1 greenkeeper-browserify-13.2.0 greenkeeper-browserify-13.3.0 greenkeeper-browserify-14.0.0 greenkeeper-browserify-14.1.0 greenkeeper-browserify-14.2.0 greenkeeper-browserify-14.3.0 greenkeeper-browserify-14.4.0 greenkeeper-budo-8.1.0 greenkeeper-budo-8.2.2 greenkeeper-budo-8.3.0 greenkeeper-budo-8.4.0 greenkeeper-budo-9.0.0 greenkeeper-budo-9.1.0 greenkeeper-budo-9.2.0 greenkeeper-budo-9.2.1 greenkeeper-budo-9.2.2 greenkeeper-budo-9.3.0 greenkeeper-budo-9.3.1 greenkeeper-budo-9.4.0 greenkeeper-budo-9.4.1 greenkeeper-budo-9.4.2 greenkeeper-budo-9.4.3 greenkeeper-budo-9.4.4 greenkeeper-budo-9.4.5 greenkeeper-budo-9.4.6 greenkeeper-budo-9.4.7 greenkeeper-budo-10.0.0 greenkeeper-budo-10.0.1 greenkeeper-budo-10.0.2 greenkeeper-budo-10.0.3 greenkeeper-cookie-0.2.4 greenkeeper-cookie-0.3.0 greenkeeper-cookie-0.3.1 greenkeeper-debug-2.3.0 greenkeeper-debug-2.3.1 greenkeeper-debug-2.3.2 greenkeeper-debug-2.3.3 greenkeeper-debug-2.4.0 greenkeeper-debug-2.4.1 greenkeeper-debug-2.4.5 greenkeeper-debug-2.5.0 greenkeeper-debug-2.5.1 greenkeeper-debug-2.5.2 greenkeeper-debug-2.6.0 greenkeeper-debug-2.6.1 greenkeeper-debug-2.6.2 greenkeeper-debug-2.6.3 greenkeeper-debug-2.6.4 greenkeeper-debug-2.6.5 greenkeeper-debug-2.6.6 greenkeeper-debug-2.6.7 greenkeeper-debug-2.6.8 greenkeeper-esdoc-0.4.6 greenkeeper-esdoc-0.4.7 greenkeeper-esdoc-0.4.8 greenkeeper-esdoc-0.5.0 greenkeeper-esdoc-0.5.1 greenkeeper-esdoc-0.5.2 greenkeeper-esdoc-importpath-plugin-0.1.0 greenkeeper-esdoc-importpath-plugin-0.1.1 greenkeeper-esdoc-importpath-plugin-0.1.2 greenkeeper-esdoc-importpath-plugin-0.1.3 greenkeeper-gh-pages-0.11.0 greenkeeper-gh-pages-0.12.0 greenkeeper-gh-pages-1.0.0 greenkeeper-js-yaml-3.5.4 greenkeeper-js-yaml-3.5.5 greenkeeper-js-yaml-3.6.1 greenkeeper-js-yaml-3.7.0 greenkeeper-js-yaml-3.8.0 greenkeeper-js-yaml-3.8.1 greenkeeper-js-yaml-3.8.2 greenkeeper-js-yaml-3.8.3 greenkeeper-js-yaml-3.8.4 greenkeeper-kneden-1.0.2 greenkeeper-kneden-1.0.3 greenkeeper-kneden-1.0.4 greenkeeper-kneden-1.0.5 greenkeeper-level-1.5.0 greenkeeper-level-1.6.0 greenkeeper-level-1.7.0 greenkeeper-level-js-2.2.4 greenkeeper-levelup-1.3.2 greenkeeper-levelup-1.3.3 greenkeeper-levelup-1.3.4 greenkeeper-levelup-1.3.5 greenkeeper-levelup-1.3.6 greenkeeper-levelup-1.3.7 greenkeeper-levelup-1.3.8 greenkeeper-lodash.clone-4.3.1 greenkeeper-lodash.clone-4.3.2 greenkeeper-lodash.clone-4.4.0 greenkeeper-lodash.clone-4.4.1 greenkeeper-lodash.clone-4.5.0 greenkeeper-lodash.range-3.1.3 greenkeeper-lodash.range-3.1.4 greenkeeper-lodash.range-3.1.5 greenkeeper-lodash.range-3.1.6 greenkeeper-lodash.range-3.1.7 greenkeeper-lodash.range-3.2.0 greenkeeper-material-design-lite-1.1.2 greenkeeper-material-design-lite-1.1.3 greenkeeper-material-design-lite-1.2.0 greenkeeper-material-design-lite-1.2.1 greenkeeper-material-design-lite-1.3.0 greenkeeper-memdown-1.2.0 greenkeeper-memdown-1.2.1 greenkeeper-memdown-1.2.2 greenkeeper-memdown-1.2.3 greenkeeper-memdown-1.2.4 greenkeeper-primus-5.0.0 greenkeeper-primus-5.0.1 greenkeeper-primus-5.1.0 greenkeeper-primus-5.2.0 greenkeeper-primus-5.2.1 greenkeeper-primus-5.2.2 greenkeeper-primus-6.0.0 greenkeeper-primus-6.0.1 greenkeeper-primus-6.0.2 greenkeeper-primus-6.0.3 greenkeeper-primus-6.0.4 greenkeeper-primus-6.0.5 greenkeeper-primus-6.0.6 greenkeeper-primus-6.0.7 greenkeeper-primus-6.0.8 greenkeeper-primus-6.0.9 greenkeeper-primus-6.1.0 greenkeeper-primus-7.0.1 greenkeeper-primus-7.0.2 greenkeeper-restify-4.1.0 greenkeeper-restify-4.1.1 greenkeeper-restify-4.2.0 greenkeeper-restify-4.3.0 greenkeeper-rx-4.1.0 greenkeeper-tape-4.5.0 greenkeeper-tape-4.5.1 greenkeeper-tape-4.6.0 greenkeeper-tape-4.6.1 greenkeeper-tape-4.6.2 greenkeeper-tape-4.6.3 greenkeeper-update-all greenkeeper-uuid-2.0.3 greenkeeper-uuid-3.0.0 greenkeeper-uuid-3.0.1 greenkeeper-websocket-stream-3.2.0 greenkeeper-websocket-stream-3.2.1 greenkeeper-websocket-stream-3.3.0 greenkeeper-websocket-stream-3.3.2 greenkeeper-websocket-stream-3.3.3 greenkeeper-websocket-stream-4.0.0 greenkeeper-websocket-stream-5.0.0 greenkeeper/remove-node-0.10 master
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib
src
tools
.babelrc
.codeclimate.yml
.dockerignore
.eslintrc
.gitignore
.npmignore
.tern-project
.travis.yml
Dockerfile
LICENSE
README.md
docker-compose.yml
esdoc.json
package.json
publish-docs.js
store.sublime-workspace

README.md

schema-mapper-store

A node API, CLI and REST API to manage schemas and store data.

Build status Docs status Code Climate Dependencies License

Usage

CLI

Installation

npm install -g schema-mapper-store
# using build in help
schema-mapper-store --help

# using opts
schema-mapper-server \
 --project [ file --path /tmp/project ] \
 --expose [ websocket --port 7000 ] \
 --expose [ rest --port 7100 ] \
 --expose [ admin --port 7200 ] \
 --driver [ elasticsearch --host http://localhost:9200 ] \
 --driver [ postgresql --host localhost --user postgres --password schemamapper ] \
 --driver [ leveldb --path /tmp/level ]

# using environment variables
export STORE_PROJECT_STRATEGY=file
export STORE_PROJECT_FILE_PATH=/tmp/project
export STORE_EXPOSE_STRATEGIES=websocket,rest,admin
export STORE_EXPOSE_WEBSOCKET_PORT=7000
export STORE_EXPOSE_REST_PORT=7100
export STORE_EXPOSE_ADMIN_PORT=7200
export STORE_DRIVER_STRATEGIES=elasticsearch,postgresql,leveldb
export STORE_DRIVER_ELASTICSEARCH_HOST=http://localhost:9200
export STORE_DRIVER_POSTGRESQL_HOST=localhost
export STORE_DRIVER_POSTGRESQL_USER=postgres
export STORE_DRIVER_POSTGRESQL_PASSWORD=schemamapper
export STORE_DRIVER_LEVELDB_PATH=/tmp/level
schema-mapper-server

Node API

Installation

npm install --save schema-mapper-store
var store = require('schema-mapper-store');

store.createServer({
  project: 'file',
  expose: ['websocket'],
  storage: ['leveldb', 'elasticsearch', 'postgresql'],
  config: {
    project: {
      path: '/tmp/project'
    },
    expose: {
      websocket: {
        port: 9000
      }
    },
    storage: {
      leveldb: {
        path: '/tmp/leveldb'
      },
      elasticsearch: {
        hosts: ['http://localhost:9200']
      },
      postgresql: {
        user: 'postgres',
        password: 'schemamapper',
        host: 'localhost'
      }
    }
  }
});

Docker compose

store:
  image: schemamapper/store
  ports:
   - "7000:7000"
   - "7100:7100"
   - "7200:7200"
  links:
    - postgresql
    - elasticsearch
  volumes:
   - /data-leveldb:/data-leveldb
   - /data-projects:/data-projects
  environment:
    - STORE_PROJECT_STRATEGY=file
    - STORE_PROJECT_FILE_PATH=/data-schemamapper
    - STORE_EXPOSE_STRATEGIES=websocket,rest,admin
    - STORE_EXPOSE_WEBSOCKET_PORT=7000
    - STORE_EXPOSE_REST_PORT=7100
    - STORE_EXPOSE_ADMIN_PORT=7200
    - STORE_DRIVER_STRATEGIES=elasticsearch,postgresql,leveldb
    - STORE_DRIVER_ELASTICSEARCH_HOST=http://elasticsearch:9200
    - STORE_DRIVER_POSTGRESQL_HOST=postgresql
    - STORE_DRIVER_POSTGRESQL_USER=postgres
    - STORE_DRIVER_POSTGRESQL_PASSWORD=schemamapper
    - STORE_DRIVER_LEVELDB_PATH=/data-leveldb
    - DEBUG=*
postgresql:
  image: schemamapper/postgresql-postgis-uuid
  environment:
    - POSTGRES_PASSWORD=schemamapper
  ports:
    - "5432:5432"
  volumes:
    - /data-postgresql:/var/lib/postgresql/data
elasticsearch:
  image: elasticsearch
  ports:
    - "9200:9200"
  volumes:
    - /data-elasticsearch:/usr/share/elasticsearch/data
authorizedkeys:
  image: tutum/authorizedkeys
  environment:
    - AUTHORIZED_KEYS=ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEApzubzNrYNSYv66Hbv92ChEJLS+2d0+u4FvktO1iE6jFRx2UL9Xk8SmGoP6+MYPrzaZutZudqrcf8tBH028snPzMOKoXiNJeqS0wGeGegR4l1lHHfk5T+1F5aziEBpun7etV1M0iNWEP8oK8Rr7NDMqnYOGUTFa8k/fuwvOslDMxmESX5wh6J0k8dDVTrSIXCJnpL0AAwFfuGwl5mm8iCZwi4xTyINwwjkZMAthG/BhJV4FolTxyFKGC/ZN+a418SUgLP6FUJ7C6HCjwjNZON77IJHquQsYJc+Gqz69H6jodYeRXD9f3UMI/JL2k1ti3aDqmnF+W0NWhFO51RSKLQvQ== k.schmeets@gmail.com
  volumes:
    - /root:/user:rw

API docs

API Docs

Licence

MIT