Create the set of REST API's that can answer the following questions:
- Total number of orders for each restaurant
- Total amount (money) of sales per restaurant
- The most frequently ordered meals on FOODit Platform
- The most frequently ordered category for each restaurant
It is expected that you will write unit tests.
Deploy the solution to your own appengine instance and provide FOODit with links to the API's in a email so we can test it.
Your data to run the API's should be stored in Google Datastore
The solution is to be built on the thundr framework and deployed to google appengine. You can read more about thundr here http://3wks.github.io/thundr/.
To simplify environment setup and allow you to jump straight into solving the test questions this project is has all the dependencies for thundr and appengine.
-
Clone this repository https://github.com/FOODit/FOODit-JavaTest.git
-
Run mvn:install to install the application
-
Run mvn:appengine:devserver to start the application locally.
-
Start writing the code to expose the data required in the test.
-
When your happy with your solution you will need to deploy it to your own appengine instance and test that it works. Please also push the solution to your own public github repository so we can review the code
When your ready please send us the urls of the created api's and the link to the projects github repository.
To expose the api's you can simple return a JsonView from your controller method read about views here http://3wks.github.io/thundr/thundr/views.html
Happy coding :)