Taxi Booking system is a backend API application that simulates a simple taxi booking system according to the requirements from Motional. The application was built using Spring Boot with Java 11 and Maven 3.6.
- Java 11
- Maven 3.6
- Clone git repository into a directory
- Use your preferred IDE to open the Spring Boot project located in the directory.
- Maven auto downloads all project dependencies located in pom.xml
- Run the application using your IDE's "Run Application" or Go to TaxibookingsystemApplication Java main class, Right-Click and Run.
Please ensure you have Java installed
- save the
taxibookingsystem.war
file into a specific directory - Run the following command in the command prompt:
java -jar ./taxibookingsystem.war
Need IDE to run test
-
Import project into IntelliJ Idea (or your selected IDE).
-
Go into
src/test/java/com.motional.cthye.taxibookingsystem
-
Right click
TaxiBookingApplicationUnitTest
-
Click Run Test.
-
All tests related to the suite will run accordingly. Ensure all test pass before you commit your changes.
The Documentation for API was done using Swagger. Kindly access the application's API documentation at ~/swagger-ui/
at http://localhost:8080/swagger-ui/
.