This is a simple Java based command line application which dispalys the food truck which are open on current day and current time. The data will be displayed on the command line in the slots of 10 food trucks per page.
The information about the API used can be found here.
- The first and most important requirement is that there should be Java 1.7 or later installed on your machine.
- If Java is not installed kindly follow the steps given below:
- For Mac: Click here
- For Ubuntu: Click here
- For windows: Click here.
- If Java is not installed kindly follow the steps given below:
-
Clone the repository into your local machine.
-
Open the terminal/command prompt and navigate to the classFiles directory in the TakeHomeTest folder using the command:
- For Ubuntu: cd TakeHomeTest/classFiles
- For Windows: cd TakeHomeTest\classFiles
-
To run the program execute the following commands given below:
- For Ubuntu:
javac -cp "../ExternalJars/*:" -d . ../src/*.java java -cp "../ExternalJars/*:" Main
- For Windows:
javac -cp "..\ExternalJars\*;" -d . ..\src\*.java java -cp "..\ExternalJars\*;" Main
- For Ubuntu:
-
To run the test cases execute the following commands given below:
- For Ubuntu:
javac -cp "../ExternalJars/*:" -d . ../src/FoodTruck.java ../src/FoodTruckService.java ../test/*.java java -cp "../ExternalJars/*:" TestRunner
- For Windows:
javac -cp "..\ExternalJars\*;" -d . ..\src\FoodTruck.java ..\src\FoodTruckService.java ..\test\*.java java -cp "..\ExternalJars\*;" TestRunner
- For Ubuntu: