Skip to content

WayFarer is a public bus transportation booking server. You are required to develop the back-end API. Built with JavaScript

License

Notifications You must be signed in to change notification settings

danielufeli/andelamf

Repository files navigation

WayFarer Build Status Coverage Status Maintainability Test Coverage


andelamf

WayFarer is a public bus transportation booking server. You are required to develop the back-end API.


Technologies

WayFarer was developed with JavaScript (ES6), Node.js using Express 4.
with Airbnb JavaScript Style Guide


Swagger Documentation

API endpoints Documentation URL - https://wayfareran.herokuapp.com/api/v1/docs/

API Information

API endpoints URL - https://wayfareran.herokuapp.com/

METHOD DESCRIPTION ENDPOINT
POST Sign Up api/v1/auth/signup
POST Sign In api/v1/auth/signin
POST Admin can create a trip api/v1/trips
PATCH Admin can cancel a trip api/v1/trips/:tripId
GET Both Admin and Users can see all trips api/v1/bookings
POST Users can book a seat on a trip api/v1/bookings
GET View all bookings. api/v1/bookings
DELETE Users can delete their booking api/v1/bookings/:bookingId

Sample Users

Admin-
Username: admin@wayfarer.com
Password: Domi@2019

User-
Username: user1@wayfarer.com
Password: Domi@2019


Running Locally

Make sure you have Node.js 12.0.0 installed and POSTMAN.

git clone https://github.com/danielufeli/andelamf.git
cd andelamf
npm install
npm start

Wafarer app should now be running on localhost:3000.


Author

Daniel Ufeli

About

WayFarer is a public bus transportation booking server. You are required to develop the back-end API. Built with JavaScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published