Giter Site home page Giter Site logo

candig_mds's Introduction

CanDIG

Database Access API for mongodb schmea

Getting started

This project requires Go to be installed. On OS X with Homebrew you can just run brew install go.

Installing this code: $ go get github.com/CanDIG/candig_mds

Running it then should be as simple as:

$ make build
$ ./bin/candig

To generate fake data, run $ ./bin/candig -g=100, where 100 is the amount of dummy data requested To run on a spesific port run $ ./bin/candig -p=8000, where 8000 is the desired port

Endpoints:

# QUERIES

# This is an example query that will return all data from every table in the database
$ curl http://127.0.0.1:8000/Candig/query -X POST -H "content-type:application/json" -d 
'{"selected_fields":["*"],“selected_tables":[],"selected_conditions":[]}'


# INSERTS
# <object_name>
$ curl -X POST -H "Content-Type: application/json" /
 -d '{`# See models.<object_name> for object structure`}' 127.0.0.1:8000/Candig/<object_name>

Server Dependencies

  • Go
  • Go Libraries
  • Mongodb

Note: The object structure for the database will create itself as long as mongo is running on the default port

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.