Giter VIP home page Giter VIP logo

nodepop's Introduction

Nodepop

API que dará servicio a una app de venta de artículos de segunda mano

##Instalando Dependencias

  • npm install

##Scripts

  • npm start: inicia servidor por el puerto 3000.
  • npm run dev: inicia en modo 'desarrollo' y por el 'puerto 3000'.
  • npm run installBD: inicializa Base de Datos, y carga datos

##Uso de API

##API v1 info GET /anuncios

Input Query:

start: {int} skip records limit: {int} limit to records sort: {string} field name to sort by includeTotal: {bool} whether to include the count of total records without filters tag: {string} tag name to filter venta: {bool} filter by venta or not precio: {range} filter by price range, examples 10-90, -90, 10- nombre: {string} filter names beginning with the string Input query example: ?start=0&limit=2&sort=precio&includeTotal=true&tag=mobile&venta=true&precio=-90&nombre=bi

Result: {

"ok": true,
"data": 

[

{

"_id": "562d2596fb97ce7b0a0a6e07",
"venta": false,
"precio": 10,
"foto": "http://localhost:3000/imagenes/anuncios/iphone4.jpg",
"__v": 0,
"tags": 

[
    "iphone",
    "iphone 4"
]

}, {

"_id": "562d25f4fb97ce7b0a0a6e08",
"venta": false,
"precio": 10,
"foto": "http://localhost:3000/imagenes/anuncios/iphone4.jpg",
"__v": 0,
"tags": 

        [
            "iphone",
            "iphone 4"
        ]
    }
]

}

##Ver API desplegada

nodepop's People

Contributors

apascasio avatar

Watchers

James Cloos avatar  avatar

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.