Giter VIP home page Giter VIP logo

xy-inc's Introduction

xy-inc

###Backend as a Service

Developed to be used by those who does not have knowledge to build and keep a rest service api. It makes possible to any user only create a client side application and use CRUD operations of any models from this application.

###How to use:

1.First download and install NodeJs.

2.Second install MongoDB: npm install mongodb --save

3.Third download the folder "Sevices" and install all dependencies: npm install

Now xy-inc rest service is redy to run.

Start mongod.

Start xy-inc services: npm start

It's hardcoded to use port 3000. It will be fixed on the next versions.

###AVAILABLE APIs:

Link Model to a Client:

METHOD : POST

URI : /model

BODY_CONTENT_TYPE : JSON

BODY CONTENT: {"model_name": "< MODEL_NAME >", "model_attributes" : "{'< attr_key >': '< attr_type >', ...}"}

List All from a Model:

METHOD : GET

URI : /services/< model_name >

Find By Id from a Model:

METHOD : GET

URI : /services/< model_name >/< id >

Create Content to a Model

METHOD : POST

URI : /services/< model_name >

BODY_CONTENT_TYPE : JSON

BODY CONTENT: {"< attr_key >": "< attr_value >", ...}

Edit Content from a Model

METHOD : PUT

URI : /services/< model_name >/< id >

BODY_CONTENT_TYPE : JSON

BODY CONTENT: {"< attr_key >": "< new_attr_value >", ...}

Delete Content from a Model by id

METHOD : DELETE

URI : /services/< model_name >/< id >

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.