-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(#42): Driver Manages Ride Request Notification and Trip Completi…
…on (#46) * feat(#42): Driver Manages Ride Request Notification and Trip Completion - Adding app icon on ios - generating routes using mapbox - checking for permissions and blocking the app if they are not given * feat(#42): Driver Manages Ride Request Notification and Trip Completion - Mark pending ride requests as completed when accepting one * feat(#42): Driver Manages Ride Request Notification and Trip Completion - only fetch route once every minute when there is a ride request - remove asking for locaton permission on location manager (optional) - refactoring * feat(#42): Driver Manages Ride Request Notification and Trip Completion - fixing getting routes multiple times * feat(#42): Driver Manages Ride Request Notification and Trip Completion - adding reconecting to mqtt - moving subscribing from publish location to connect - showing connection status to the user * feat(#42): Driver Manages Ride Request Notification and Trip Completion - updating route if driver moves and there is an ongoing ride * feat(#42): Driver Manages Ride Request Notification and Trip Completion - removed harcoded references to ips * feat(#42): Driver Manages Ride Request Notification and Trip Completion - fixed a bug (more than 1 nearby driver only found 1 - improving mqtt client * feat(#42): Driver Manages Ride Request Notification and Trip Completion - added endpoint for requests - loading requests on app start - loading requests on auth * feat(#42): Driver Manages Ride Request Notification and Trip Completion - fixing nearby drivers utility * feat(#42): Driver Manages Ride Request Notification and Trip Completion - updating ride request instead of replacing - using axios due to cache issues * feat(#42): Driver Manages Ride Request Notification and Trip Completion - updating ride cards ui
- Loading branch information
1 parent
ba337d2
commit a788ccd
Showing
57 changed files
with
1,748 additions
and
522 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
PORT=3000 | ||
DATABASE_URL=postgres://morro_user:morro_pass@127.0.0.1:5432/morrotaxi | ||
DATABASE_URL=postgres://morro_user:morro_pass@db:5432/morrotaxi | ||
BCRYPT_SALT_ROUNDS=12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import sequelize from '@/config/database'; | ||
import Driver from './driver'; | ||
import RideRequest from './ride-request'; | ||
import Rider from './rider'; | ||
|
||
Driver.hasOne(RideRequest, { | ||
foreignKey: 'driverId', | ||
as: 'currentRideRequest' | ||
}); | ||
RideRequest.belongsTo(Driver, { foreignKey: 'driverId', as: 'driver' }); | ||
|
||
Rider.hasMany(RideRequest, { foreignKey: 'riderId', as: 'rideRequests' }); | ||
RideRequest.belongsTo(Rider, { foreignKey: 'riderId', as: 'rider' }); | ||
|
||
export { Driver, Rider, RideRequest, sequelize }; |
Oops, something went wrong.