项目作者: kevin-funderburg

项目描述 :
Uber simulation using RESTful API, Node.js and Google Maps API
高级语言: JavaScript
项目地址: git://github.com/kevin-funderburg/NUber-RESTful-API.git
创建时间: 2019-09-15T02:42:04Z
项目社区:https://github.com/kevin-funderburg/NUber-RESTful-API

开源协议:

下载


NUber RESTful API

This projects goal was to simulate Uber via a RESTful API, Node.js, and Google Maps API by the Agile process of software development.

  • Authors: Kevin Funderburg, Fernando Valdez, Chad Palmer
  • Texas State University
  • Software Engineering - Professor: Jason Diaz - Spring 2019

To launch this project:

  1. clone git repository to a local repo
  2. navigate to the local repo in command prompt/terminal
  3. Start the server with the following command:
    1. npm install
    2. node server.js
    You should receive the following response:
    1. Express server listening on port 3000
    2. success!
  4. API can now be tested.

Testing the API

  • This API consists of admins, riders, drivers and trips.
  • Admins can create or delete: riders, drivers, or admins.
  • A rider can make a trip
  • A trip can be made with ZenMode enabled, or special notes to the driver.
  • The trip can be updated with a tip amount and rating.

GET


  1. - Get all trips - http://localhost:3000/trip
  2. - Get all riders - http://localhost:3000/rider
  3. - Get all drivers - http://localhost:3000/driver
  4. - Get rider information - http://localhost:3000/driver/:id
  5. - Get driver information - http://localhost:3000/driver/:id
  6. - Get all drivers within 10 miles - http://localhost:3000/rider/driverByDistance/:id
  7. - Make a trip with http://localhost:3000/rider/driverByDistance/:id

PUT


  1. - Update driver data - http://localhost:3000/driver/:id
  2. - Update rider data - http://localhost:3000/rider/:id
  3. - Update trip data - http://localhost:3000/trip/:id

POST/DELETE

  1. - Create drivers - http://localhost:3000/admin/driver
  2. - Create riders - http://localhost:3000/admin/rider
  3. - Create admins - http://localhost:3000/admin/