AdamHansrod / FoodIT

Code for FoodIT, working with Thundr and GAE

Home Page:fooditjavatest.appspot.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FOODit Test Task

Create the set of REST API's that can answer the following questions:

1.Total number of orders for each restaurant

2.Total amount (money) of sales per restaurant

3.The most frequently ordered meals on FOODit Platform

4.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

Pre-requisites.

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.

Get started.

  1. Clone this repository https://github.com/FOODit/FOODit-JavaTest.git

  2. Run mvn:install to install the application

  3. Run mvn:appengine:devserver to start the application locally.

  4. Start writing the code to expose the data required in the test.

  5. 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.

Tips

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 :)

Solution

1.Total number of orders for each restaurant

/restaurant/{restaurant}/order/total

2.Total amount (money) of sales per restaurant

/restaurant/{restaurant}/sale/total

3.The most frequently ordered meals on FOODit Platform

/foodit/stats

4.The most frequently ordered category for each restaurant

/restaurant/{restaurant}/stats

About

Code for FoodIT, working with Thundr and GAE

fooditjavatest.appspot.com


Languages

Language:Java 99.6%Language:CSS 0.4%