Coder Social home page Coder Social logo

ssleimann / riding-api Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 72.74 MB

This is an API about a riding application.

License: GNU General Public License v3.0

Python 98.73% Dockerfile 0.61% Shell 0.65%
celery django django-rest-framework docker drf drf-yasg riding

riding-api's Introduction


Riding API

API to manage travels, drivers and vehicles.

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. License
  5. Contact

About The Project

RidingAPI is a REST API for a travel system. You can create a user to create travel requests. You can also with your user become a driver and accept travels. The location of the travels is placed using longitude and latitude. You can list the avaliable travels according to where you are and a radius.

(back to top)

Built With

Technologies used in this project are:

  • Python
  • PostgreSQL
  • Django
  • Celery
  • Redis

(back to top)

Getting Started

Prerequisites

Before you start, you'll need to make sure you have the following installed:

  • Docker
  • Docker Compose
  • Git

Installation

  1. Clone the repository and access it.
    git clone https://github.com/SSleimann/riding-api.git
    cd riding-api 
  2. Run the following command to build and run the containers in local:
    docker compose -f local.yml up -d

You can stop the containers by running:

docker compose -f local.yml down

(back to top)

Usage

First, you need to create a user to be able to access the other endpoints. A user is a passenger, a user can become a driver as well.

If you become a driver, in order to take travels you need to have vehicles, otherwise your status will be inactive and you will not able to take travels.

When you take a request travel, a Travel object is created, then when you want to end the travel, the driver and the passenger must confirm the confirmation order, when both have done so the travel is ended.

On the other hand, being a user you can create request travels adding your current location in latitude and longitude, when a travel is taken, you will be notified with an email. In local mode, the email backend is django.core.mail.backends.locmem.EmailBackend.

You can see the endpoints of the application in the path /api/docs/schema/swagger-ui/

(back to top)

License

This project is licensed under the GNU General Public License (GPL) version 3. See the LICENSE file for more details.

(back to top)

Contact

Sleiman Orocua - [email protected]

Project Link: https://github.com/SSleimann/riding-api

(back to top)

riding-api's People

Contributors

ssleimann avatar

Stargazers

 avatar

Watchers

 avatar

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.