Skip to content

sanobertin/sendIT

Repository files navigation

Build Status

Coverage Status

Maintainability

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

Access to all API endpoints

GET: /api/v1/parcels Fetch all parcel delivery orders

GET: /api/v1/parcels/<parcelId> Fetch a specific parcel delivery order

GET: /api/v1/users/<usersId>/parcels Fetch all parcel delivery orders by a specific user

PUT: /api/v1/parcels/<parcelID>/cancel Cancel the specific parcel delivery order

POST: /api/v1/parcels Create a parcel delivery order

{
	"parcel":{
		"owne":"bertin", 
		"parcelName":"parcel 6", 
		"fromlocation":"kigali", 
		"tolocation":"rulindo", 
		"presentlocation":"kigali", 
		"price": 5000
		
	}
} 

PUT: /api/v1/parcels/<parcelID>/destination Changing destination of a parcel order

{
	"user":"bertin",
	"destination":"Ruhango"
}

PUT: /api/v1/parcels/<parcelID>/status Admins can change the status of a parcel order

{
	"user":"admin",
	"status":"Delivered"
}

PUT: /api/v1/parcels/</:parcelID>/presentLocation Changing the present location of a parcel order

{
	"user":"bertin",
	"location":"Pretoria"
}

POST: /auth/signup Securely Sign up

{
	"name":"test",
	"email":"[email protected]",
	"username":"test",
	"password":"test"
}

POST: /auth/login Securely Log in

{
	"user":"test",
	"password":"test"
}

API access site: https://sendit3.herokuapp.com/

Running the app
clone the repo :
cd sendit
run: npm start
run: npm test for test development

Template hosting site:
https://sanobertin.github.io/sendIT/UI >> index page
/admin.html admin panel
/profile.html profile page
/signin.html Sign in page
/signup.html Sign up page

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •