这是indexloc提供的服务,不要输入任何密码
Skip to content

oesukam/sendit

 
 

Repository files navigation

Andela - SendIT (v1.0.5)

Build Status codecov Maintainability

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

Features

Required Features:

  1. Users can create an account and log in.
  2. Users can create a parcel delivery order.
  3. Users can change the destination of a parcel delivery order.
  4. Users can cancel a parcel delivery order.
  5. Users can see the details of a delivery order.
  6. Admin can change the status and present location of a parcel delivery order.

Optional Features:

  1. The application should display a Google Map with Markers showing the pickup location and the destination .
  2. The application should display computed travel distance and journey duration between the pickup location and the destination. Leverage Google Maps Distance Matrix Service.
  3. The user gets real-time email notification when Admin changes the status of their parcel.
  4. The user gets real-time email notification when Admin changes the present location of their parcel.

UI

Web Pages

Home Page Screenshot

Technologies used for the UI:

  • HTML
  • CSS
  • Javascript (ES6)
  • Google Map Javascript API

SendIT - API (V1.0.4)

API endpoints

Users

  • POST /api/v1/users/login -> Log into an account Login
  {
    email: user@email.com,
    password: user@user
  }
  • POST /api/v1/users/ -> Create a new user
  {
    firstName: 'First Name',
    lastName: 'Last Name',
    email: 'email@email.com',
    password: 'password',
    gender: 'Female',
    province: 'Kigali',
    district: 'Nyarungege'
  }
  • GET /api/v1/users/userId/confirmEmail/confirmationCode -> Confirms emails after creating an account for new users

  • GET /api/v1/users -> Fetch Users

Parcels

  • GET /api/v1/parcels/parcelId -> Fetch all parcels Get a Parcel

  • GET /api/v1/parcels -> Fetch all parcels Parcels

  • POST /api/v1/parcels -> Creates a new parcel delivery order

  {
    userId: '97cf377c-5735-4f5d-8645-c8fb4b5c5af3',
    fromProvince: 'Kigali',
    fromDistrict: 'Nyarungege',
    toProvince: 'Northen Province',
    toDistrict: 'Burera',
    receiverNames: 'Receiver Names',
    receiverPhone: '250-783200000',
    receiverAddress: faker.address.streetAddress(),
    weight: faker.random.number()
  }
  • PUT /api/v1/parcels/parcelId/cancel -> Cancel a parcel
  {
    userId: '97cf377c-5735-4f5d-8645-c8fb4b5c5af3'
  }

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages