/send-it

SendIT is a courier service that helps users deliver parcels to different destinations. SendIT provides courier quotes based on weight categories.

Primary LanguageJavaScript

SendIT

Build Status Coverage Status Maintainability Test Coverage

Description

SendIT is a courier service that helps users deliver parcels to different destinations. SendIT provides courier quotes based on weight categories.

Table of Contents

Technologies

  • HyperText Mark-up Language (HTML)
  • Cascade Style Sheet (CSS)
  • Javascript
  • Nodejs (Express framework)
  • Mocha (Test Framework)
  • Chai (Assertion Library)

Pivotal Tracker

SendIT can be found on pivotal tracker with the link below. (https://www.pivotaltracker.com/n/projects/2218905)

API Enpoints

The API is hosted at (https://johnnysam-sendit.herokuapp.com/api/v1)

UI Templates

The ui templates are currently hosted on gh-pages (https://jsamchineme.github.io/send-it/UI/)

API Documentation

The API documentation can be found through this url (https://johnnysam-sendit.herokuapp.com/docs)

Features

  • Fetch all parcel delivery orders
  • Create a parcel delivery order
  • Fetch a specific parcel delivery order
  • Fetch all parcel delivery orders by a specific user
  • Cancel the specific parcel delivery order
  • Change the status of a parcel delivery order
  • Change the destination of a parcel delivery order
  • Change the present location of a parcel delivery order
  • User Signup
  • User Login

Getting Started

Installation

API Endpoint Routes

NOTE: All requests are prefixed with api/v1

HTTP VERBENDPOINTTASK
GET parcels?token={adminToken} Fetch all parcel delivery orders
POST parcels?token={userToken} Create a parcel delivery order
GET parcels/:id?token={ownerAuthToken} Fetch a specific parcel delivery order
GET users/:id/parcels?{ownerAuthToken} Fetch all parcel delivery orders by a specific user
PUT parcels/:id/cancel?token={ownerAuthToken} Cancel the specific parcel delivery order
PUT parcels/:id/status?{adminAuthToken} Change the status of a parcel delivery order
PUT parcels/:id/destination?token={ownerAuthToken} Change the destination of a parcel delivery order
PUT parcels/:id/presentLocation?token={ownerAuthToken} Change the present location of a parcel delivery order
POST auth/signup User Signup
POST auth/login User Login
GET users/:id Get User profile
POST auth/reset Request Password Reset
PUT auth/reset Change User password

Author

Samuel Osuh