██╗ ██╗ █████╗ ██╗ ██╗███████╗ █████╗ ██████╗ ███████╗██████╗
██║ ██║██╔══██╗╚██╗ ██╔╝██╔════╝██╔══██╗██╔══██╗██╔════╝██╔══██╗
██║ █╗ ██║███████║ ╚████╔╝ █████╗ ███████║██████╔╝█████╗ ██████╔╝
██║███╗██║██╔══██║ ╚██╔╝ ██╔══╝ ██╔══██║██╔══██╗██╔══╝ ██╔══██╗
╚███╔███╔╝██║ ██║ ██║ ██║ ██║ ██║██║ ██║███████╗██║ ██║
╚══╝╚══╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝
WayFarer is a public bus transportation booking service.
An Andela Bootcamp Challenge.
For API documentation, please visit https://wayfarer-adc-nthomas.herokuapp.com/api/v2/api-docs/
- Live Link
- Features
- API Endpoints
- Technologies Stack
- Management
- Contributions
- Author
- Bugs
- Acknowledgments
https://nignanthomas.github.io/wayfarer/UI/html
Admin route: https://nignanthomas.github.io/wayfarer/UI/html/admin/admin-bookings.html
- User can sign up. Sign Up Page
- User can sign in. Sign In
- Admin can create a trip. Create Trip
- Admin can cancel a trip. Cancel Trip
- Both Admin and Users can see all trips. Admin Trips / User Trips
- Both Admin and Users can see a specific trip. Admin Trip / User Trip
- Users can book a seat on a trip. Book Trip the click on
Book
button to choose a seat. - View all bookings. An Admin can see all bookings, while user can see all of his/her bookings. Admin Bookings / User Bookings
- Users can delete their booking. Delete Booking then click on
Delete
button.
- Users can get a list of filtered trips based on origin. Filter Origin then fill
From
field in the search bar to specify origin city. - Users can get a list of filtered trips based on destination. Filter Origin then fill
To
field in the search bar to specify destination city. - Users can specify their seat numbers when making a booking. Book Trip the click on
Book
button to specify your seat.
Endpoint | Request Method | Request parameter |
---|---|---|
/api/v2/auth/signup | POST |
Endpoint | Request Method | Request parameter |
---|---|---|
/api/v2/auth/signin | POST |
Endpoints | Request Method | Request parameter |
---|---|---|
/api/v2/trips | POST | Authhorization token |
/api/v2/trips | GET | Authhorization token |
/api/v2/trips/?origin=Kigali | GET | origin && Authhorization token |
/api/v2/trips/?destination=Nairobi | GET | destination && Authhorization token |
/api/v2/trips/?origin=Kigali&destination=Nairobi | GET | origin & destination && Authhorization token |
/api/v2/trips/:id | GET | id && Authhorization token |
/api/v2/trips/:id | PATCH | id && Authhorization token |
/api/v2/trips/:id/cancel | PATCH | id && Authhorization token |
/api/v2/trips/:id | DELETE | id && Authhorization token |
Endpoints | Request Method | Request parameter |
---|---|---|
/api/v2/bookings | POST | Authhorization token |
/api/v2/bookings | GET | Authhorization token |
/api/v2/bookings/:id | GET | id && Authhorization token |
/api/v2/bookings/:id | PATCH | id && Authhorization token |
/api/v2/bookings/:id | DELETE | id && Authhorization token |
- Clone this project with
git clone https://github.com/nignanthomas/wayfarer.git
. - Head to project directory
cd wayfarer
- Navigate to UI/html folder
cd UI/html
- These are HTML and CSS based pages that can be run directly in your browser.
- Install the project dependencies
npm install
- Launch the server
npm start
Frontend-UI | Backend-API |
---|---|
HTML | Nodejs/Express |
CSS | Mocha |
JS | Travis-CI |
This project is managed using Pivotal Tracker.
- Explain why you're making a change.
- Please consider the scope of your change.
- Please modify only one template per pull request.
- The more you can make me understand the change you're making, the more likely I'll be to accept your contribution quickly.
No known bugs. If you spot one, kindly email me @ nignanthomas@gmail.com
_ _ _
_ __ (_) __ _ _ __ __ _ _ __ | |_| |__ ___ _ __ ___ __ _ ___
| '_ \| |/ _` | '_ \ / _` | '_ \| __| '_ \ / _ \| '_ ` _ \ / _` / __|
| | | | | (_| | | | | (_| | | | | |_| | | | (_) | | | | | | (_| \__ \
|_| |_|_|\__, |_| |_|\__,_|_| |_|\__|_| |_|\___/|_| |_| |_|\__,_|___/
|___/