8000 GitHub - tomekwi/ou-taxi-service: ride matching app · GitHub
[go: up one dir, main page]

Skip to content

About

ride matching app

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Overview

Simple demo of a taxi ride-matching flow:

Server (Express): provides /openstack/taxi/ API.

App (Expo/React Native): lets a user register, create driver offers or rider requests, and view matches.

Server (Express)

Install & run

cd ou-taxi-service
npm install
npm start   # starts on http://localhost:3000/openstack/taxi/

App (Expo)

Set API base URL

PowerShell

$env:EXPO_PUBLIC_TAXI_BASE_URL="http://localhost:3000/openstack/taxi/"

Android emulator:

$env:EXPO_PUBLIC_TAXI_BASE_URL="http://10.0.2.2:3000/openstack/taxi/"

Real phone (replace with your PC LAN IP, same Wi-Fi):

$env:EXPO_PUBLIC_TAXI_BASE_URL="http://192.168.1.23:3000/openstack/taxi/"

Install & start

cd tma02-app
npm install
npm start    # press w for web, a for Android, or scan with Expo Go

Using the app

Enter USERID and tap Register.

As Owner: set waiting address/time → Make.

As Customer: set pickup address/time → Make.

Tap Matches to fetch matches for the active USERID.

Notes

If using a phone, allow firewall access on port 3000.

Locatio 4C62 n button requires granting device location permission.

About

ride matching app

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0