/InstaRide

A taxi booking platform

Primary LanguageJavaScript

Instaride

PRs Welcome MIT license Open Source Love svg2 size Website status

Many apps rely on real-time, bi-directional communication to give users a great experience. One example is a ride-sharing app like Uber or Lyft, which is built on the messages that are sent between a rider and a driver. A rider selects a starting location and destination, and then the app broadcasts a trip request to all nearby drivers. An available driver accepts the trip and meets the rider at the pick-up address. In the meantime, every move the driver makes is sent to the rider almost instantaneously and the rider can track the trip status as long as it is active.

Setup

git clone https://github.com/realvaibhav/InstaRide.git
cd insta
docker-compose up

Collections

db

Dependencies

Dependency Version
Python 3.10
Django 4.1
Django Channels 4.0
Django REST Framework 3.14
pytest 7.2
Redis 7.0
PostgreSQL 15.0
Node v20
React v18.2
CRA v5.0
Docker Engine v20.10
Docker Compose v2.12
Tailwind 2.0

Routes

Path Component Functionality
/ Landing Renders the landing page.
/sign-up SignUp Renders the sign-up form.
/log-in LogIn Renders the log-in form.
/rider Rider Renders the rider dashboard.
/rider/request RiderRequest Renders the rider request form.
/rider/:id RiderDetail Renders details of a specific ride.
/driver Driver Renders the driver dashboard.
/driver/:id DriverDetail Renders details of a specific driver.

Endpoints

Endpoint HTTP Method CRUD Method Result
/admin/ GET READ Django's built-in admin site.
/api/sign_up/ POST CREATE JSON response with a token.
/api/log_in/ POST CREATE JSON response with a token.
/api/token/refresh/ POST CREATE JSON response with a new token.
/api/trip/ GET READ JSON response with a list of all Trip objects.
/api/trip/uuid:trip_id/ GET READ JSON response with the specified Trip object.

UI/ScreenShots

Sign Up form for Rider/Customer Screenshot from 2023-05-11 23-03-59 Log In for Rider Screenshot from 2023-05-11 23-05-19 Sign Up form for Driver Screenshot from 2023-05-11 23-24-15 Log In for Driver Screenshot from 2023-05-11 23-09-51 Rider Dashboard Screenshot from 2023-05-11 23-05-46 Request a Ride Screenshot from 2023-05-11 23-10-41 Enter the location credentials Screenshot from 2023-05-11 23-26-13 Driver received the request

Screenshot from 2023-05-11 23-27-04

Driver Dashboard Screenshot from 2023-05-12 01-56-05 Rider starts the journey with Driver Screenshot from 2023-05-12 01-57-07

Screenshot from 2023-05-12 01-57-18 Ride Completed Screenshot from 2023-05-12 01-57-32 Ride Added to recent trips Screenshot from 2023-05-12 01-58-03