SendIT is a courier service that helps users deliver parcels to different destinations. SendIT provides courier quotes based on weight categories.
.Python 3.6
.Postman
.Git
.Nosetest
.Flask
.Flask-restful
These instructions will get you a copy of the project up and running on your local machine.
From your command line, first clone the project:
-
Clone the repo or Download zip file from the right hand corner
https://github.com/paulzay/Sendit2/
-
cd into the project folder.
-
python3
sudo apt-get install python3
-
install python3 pip
sudo apt-get install python3-pip
-
install vitual environment
pip3 install virtualenv
-
create the virtual environment
virtualenv env
-
Activate the vitualenv in the parent directory of your "env"
source env/bin/activate
-
Install requirement
pip install -r requirements.txt
-
Run the app
flask run
-
Testing
nosetests
Endpoint | Functionality |
---|---|
POST /api/v1/parcels | Create a parcel delivery |
GET /api/v1/parcels | Retrieve all parcel delivery |
PUT /api/v1/parcels/int:parcel_id/ | Cancel a specific parcel delivery |
GET /api/v1/parcels/int:parcel_id | Retrieve a specific parcel delivery |
GET /api/v1/parcels/str:sender_email | Fetch all delivery orders for a user |
👤 Paul Ogolla
Give a ⭐️ if you like this project!
- Andela
- MIT