Skip to content

andela/iceman-backend

Repository files navigation

Barefoot Nomad - Making company travel and accommodation easy and convenient.

Build Status Coverage Status Reviewed by Hound Maintainability Test Coverage

Vision

Make company global travel and accommodation easy and convenient for the strong workforce of savvy members of staff, by leveraging the modern web.

EditorConfig Setup

This project uses a .editorconfig file to help maintain consistent coding styles for the developers working on this project across various editors and IDEs. Follow this link to see if your editor requires a plugin for this feature and to guide you in installing the required plugin if it does.

Installation and Usage with Docker

To install and run the app with Docker, you must have Docker installed and running on your computer. Follow this link to guide you in installing and setting up Docker on Windows 10, MacOS or Linux. Then clone this repo and run this command to build the Docker image.

docker build -t <docker-image-name> .

Where <docker-image-name> is the name you choose to give to the Docker image. For example,

docker build -t iceman-backend .

After the build process has been completed, run this command to run the app from the Docker image.

docker run -p 3000:3000 <docker-image-name>

For example,

docker run -p 3000:3000 iceman-backend

API Endpoints

HTTP VERBENDPOINTSDESCRIPTION
POST/api/v1/auth/signupCreates user account
POST/api/v1/auth/loginLogs user in
GET/api/v1/users/profileGets user profile information
PATCH/api/v1/users/profileUpdates user profile information
GET/api/v1/auth/verifyVerify user email
GET/api/v1/auth/resend_verification_linkResend verification link
POST/api/v1/auth/forgot_passwordSend password reset token
PATCH/api/v1/auth/reset_password/:tokenReset user password
GET/api/v1/auth/facebookAuthenticate user using Facebook
GET/api/v1/auth/googleAuthenticate user using Google
PATCH/api/v1/auth/assign_roleAssign user role
POST/api/v1/requests/multi-cityAllow user to make multi city request
POST/api/v1/requests/one-wayAllow user to make one way request
POST/api/v1/requests/returnCreate a return trip
PATCH/api/v1/requests/:idUpdates trip requests
GET/api/v1/requestsRetrieve user requests
GET/api/v1/requests/returnCreate a return trip
GET/api/v1/requests/pendingAvail open requests for approval
PATCH/api/v1/requests/:id/respondApprove or Reject a travel request

API Documentation

The documentation of this API can currently be found here

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published