Git Product home page Git Product logo

project_chellange's Introduction

Run the project

gulp serve

All Gulp tasks

  • gulp or gulp build to build an optimized version of your application in /dist
  • gulp serve to launch a browser sync server on your source files
  • gulp serve:dist to launch a server on your optimized application
  • gulp test to launch your unit tests with Karma
  • gulp test:auto to launch your unit tests with Karma in watch mode
  • gulp protractor to launch your e2e tests with Protractor
  • gulp protractor:dist to launch your e2e tests with Protractor on the dist files

More information on the gulp tasks in this README.md.

Run Fake server

node server.js

Fake API list

Sign In

Credentials:

Url: `http://localhost:4444/api/v1/login`
Method: POST
Body: {
    "email": "[email protected]",
    "password": "qwerty123"
}
------------
Response: {
    "token": "098f6bcd4621d373cade4e832627b4f6"
}

Get Logged User

Url: `http://localhost:4444/api/v1/users`
Method: GET
Header: {token: '098f6bcd4621d373cade4e832627b4f6'}
------------
Response:{
    "_id": "52da83a90870ded67d00012b",
    "__v": 83,
    "firstname": "Kirill",
    "lastname": "Zhurin",
    "email": "[email protected]",
    "username": "kirillzhurin",
    "provider": 1,
    "type": "sheeper",
    "role": "owner",
    "image": "http://petapixel.com/assets/uploads/2011/08/face1.jpg",
    "fullname": "Kirill Zhurin",
    "about": "I'm one of the developers of this app! Too!",
    "activate": true
}

Logout

Url: `http://localhost:4444/api/v1/logout`
Method: GET
Header: {token: '098f6bcd4621d373cade4e832627b4f6'}
------------
Response:{status: "ok"}

Get all deliveries

Url: `http://localhost:4444/api/v1/deliveries`
Method: GET
Header: {token: '098f6bcd4621d373cade4e832627b4f6'}
------------
Response:[
    {
        "id": "583617",
        "name": "iMac",
        "pickup_date": "02-02-2015",
        "category": "office",
        "images": [
            "http://images.techhive.com/images/article/2014/01/imac2013-front-100225478-orig.jpg",
            "http://images.anandtech.com/doci/7365/iMacs_678x452.jpeg"
        ]
    }
]

Get deliveries with filter

Possible categories:

  • office
  • toys
Url: `http://localhost:4444/api/v1/deliveries`
Method: GET
Header: {token: '098f6bcd4621d373cade4e832627b4f6'}
Params:{
    category:"office"
    pickup_date:"02-02-2015"
    limit:10
    skip:0
}
------------
Response:[
    {
        "id": "583617",
        "name": "iMac",
        "pickup_date": "02-02-2015",
        "category": "office",
        "images": [
            "http://images.techhive.com/images/article/2014/01/imac2013-front-100225478-orig.jpg",
            "http://images.anandtech.com/doci/7365/iMacs_678x452.jpeg"
        ]
    }
]

project_chellange's People

Contributors

repjov avatar paragonid avatar

Watchers

 avatar

Forkers

vlad-lds

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.