WayFarer is a public bus transportation booking App.
- Users can sign up.
- Users can sign in.
- Admin can create trips.
- Users can view all available trips.
- Users can create a new booking.
- Users can view all their bookings.
- Users can delete their booking.
- Admin can cancel a trip.
- Users can change their seat number.
- Internet connection
- Internet browser
- Install NodeJS
- Install git
- Postman
- API Homepage
- Read documentation here
- Clone repo
- cd way-farer-app
- RUN npm install to install all dependencies
- npm run dev-start
- Open Postman
- Test one endpoint select verb(action) eg. POST
- Type url eg. localhost:3000/api/v1/auth/signup
- Select Headers below url, under "key" type "Content-Type", "value" type "application/json"
- Select Body beside Headers, select raw
- From the select list choose JSON(application/json)
- Type this into the body using this format below
{ "firstname": "Ikechuwu", "lastname": "okoro", "email": "test@test.com", "password": "password" }
- If successful you will get a result similar to this:
{ "status": "success", "data": { "user_id": "c7fc9a0a-4a6a-447f-982d-8174c64fe19b", "is_admin": false, "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiYzdmYzlhMGEtNGE2YS00NDdmLTk4MmQtODE3NGM2NGZlMTliIiwiZmlyc3RfbmFtZSI6IktpbmRuZXNzIiwibGFzdF9uYW1lIjoiT3Nhcm8iLCJlbWFpbCI6ImtpbmRuZXNzQHRlc3QuY29tIiwicGFzc3dvcmQiOiIkMmIkMTAkYXRJVDAvVkR3aWZiNFZRUWNsL0hJT0JsaDgwbTRSb0JaT3ZTUDVzanRQMTg4b0lzYVJlRWUiLCJpc19hZG1pbiI6ZmFsc2UsImlhdCI6MTU2MjgwMDU3NiwiZXhwIjoxNTYyODA0MTc2fQ.s--jSNwW839MEsjuE1W_kC1fA_u0GcQDAToohb9YBqM" } }
Test locally by executing "npm test" on your terminal
I will update soon
- NodeJS - JavaScript runtime built on Chrome's V8 JavaScript engine
- Express - Express is a minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications.
- ES6 - ECMA Script programming language
- Code Climate - Used to test code maintainability
- Coveralls - Used to coverage history and statistics
- Travis CI - Used for Continuous Integration
- Mocha - Used for code testing
- Chai - Is an assertion library used for testing in any JavaScript testing framework
- Heroku - A cloud application platform used for app deployment
- Ikechukwu Okoro