Giter VIP home page Giter VIP logo

ride-api's Introduction

Ride My Way

Ride-my App is a carpooling application that provides drivers with the ability to create ride offers and passengers to join available ride offers.

Motivation

This is driven by the increase in technology, which has proven to be more effective in time saving. We there fore develop this app to apply tech in the transportation industry with the main purpose of saving m ore and earning more.

Build status, and test coverage

Build status of continuous integration i.e. travis, - Test coverage of code climate and coveralls -

Build Status Maintainability

Coverage Status

Features

  • Users (Driver and passenger) can fetch all ride offers
  • Users can fetch a specific ride offer
  • Driver creates a ride offer
  • Passengers make a request to join a ride.
  • Driver can deletes and update ride offer

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

This describes things needed to install the software.

- git : to update and clone the repository
- python3: The base language used to develop the api
- pip: a python package used to install project requirements

Installing

Type: "git clone https://github.com/reiosantos/ride-my-way.git" in your terminal.

The UI folder houses the user interface. To access the user interface, open the login.html file inside the UI/templates folder

The api folder contains the system backend services.

  • To install the requirements. run:
pip3 install -r requirements

The app can then be run with the following commands.

cd api

python run.py
  • Now you can access the system api via URLs:
  • To create an account, method[POST]
http://localhost:5000/api/v1/auth/signup/
  • To login to an account, method[POST]
http://localhost:5000/api/v1/auth/login/
  • To create an account, method[POST]
http://localhost:5000/api/v1/auth/signup/
  • To access all rides, method[GET]
http://localhost:5000/apis/v1/rides/
  • To access a particular ride. ie ride number 5, method[GET]
http://localhost:5000/apis/v1/rides/5/
  • To delete a particular ride for-example 4, method[DELETE]
http://localhost:5000/apis/v1/rides/4/
  • To update a particular ride, method[PUT]
http://localhost:5000/api/v1/rides/
  • To insert a new ride, method[POST]
http://localhost:5000/api/v1/rides/
  • To send a request to join a particular ride for-example 4, method[POST]
http://localhost:5000/apis/v1/rides/4/request/
  • To view requests for a particular ride for-example 4, method[GET]
http://localhost:5000/apis/v1/rides/4/request/
  • To update a request for a ride for-example 4, and request number 5 hod[PUT]
http://localhost:5000/apis/v1/rides/4/request/5/
  • To delete a request of a particular ride for-example 4, and ride 5 method[DELETE]
http://localhost:5000/apis/v1/rides/4/request/5/

Running the tests

  • To run the tests, make sure you are working under api/, Then run the following commands
pytest

Built With

  • Flask - The web framework used
  • Python - Framework language
  • HTML
  • CSS

Authors

Acknowledgments

  • Andela Software Development Community
  • Inspiration
  • Bootcamp 9 team-mates

ride-api's People

Contributors

reiosantos avatar

Watchers

 avatar  avatar  avatar

Forkers

vrindakpmg

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.