A web application that gives you nearest driver available based on your current location for your ride.
This application is developed using Angular 6 and Spring Boot.
getmydriver-ui
is the front end Angular application and getmydriver
is the backend REST API service.
To run spring boot application, go to root directory of getmydriver
and run below command.
mvn clean install
Run the Application.java
as a Java Application, this will start the REST API service.
REST API
- To get the nearest driver, use below REST end point.
http://hostname:port/getmydriver/main/getdriver?userName=test&userLatitude=19.157935&userLongitude=72.993476
- To get the driver status, use below REST end point.
http://hostname:port/getmydriver/main/driverstatus
Angular application
To run the angular application, make sure you have node.js installed on your machine. Go to directory getmydriver-ui
and run below command.
npm install
and then
npm start
This will make your application running on localhost:4200
.