/vertice_gateway

REST API server with built in auth, interface to ScyllaDB/Cassandra

Primary LanguageScalaMIT LicenseMIT

Vertice Gateway

API server for "Megam vertice". The API server protectes the RESTful resources using HMAC based authorization.

Requirements

  1. SBT 0.13.12 >
  2. NSQ 0.3.x
  3. OpenJDK 8.0
  4. Cassandra 3 +

Compile from source

You'll need sbt build tool. and OpenJDK8.0

Fork

After you have forked a copy of https://github.com/megamsys/vertice_gateway.git

Steps


* git clone https://github.com/<your_github_id>/vertice_gateway.git

* cd vertice_gateway

* sbt

* clean

* compile


Running

Install Cassandra

Install and start NSQ.io

Setup cassandra keyspace

* cd vertice_gateway/conf

* cqlsh -f vertice.cql

* cqlsh -f upgrade_1.5.cql

* cqlsh -f marketplaces.cql


Start Vertice Gateway

* cd vertice_gateway

* sbt

* clean

* compile

* run

Gateway

Type the url http://localhost:9000

You'll see this in your browser.

{
  "status" : {
    "nsq" : "down"
  },
  "runtime" : {
    "total_mem" : "975 MB",
    "freemem" : "649 MB",
    "cores" : "4",
    "freespace" : "399 of 450 GB"
  }
}

Now you are all set.

Contribution

For [contribution] (https://github.com/megamsys/vertice/blob/master/CONTRIBUTING.md)

Documentation

For [documentation] (http://docs.megam.io) [wiki] (https://github.com/megamsys/vertice/wiki)

License

MIT

Authors

Maintainers Megam (info@megam.io)