Skip to content

dishanks9/CommandLineDevelopment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Food Truck Data From San Francisco Government's API

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.

Pre-requisites for executing the application

  • The first and most important requirement is that there should be Java 1.7 or later installed on your machine.

Executing the application

  • 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
      
  • 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
      

NOTE: If there are more than 10 results there will be instructions displayed on the command line on how to see next and previous results.

Screencast Link for project implementation demo: Click Here

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published